Python urllib HELP 04-13-2019, 06:44 PM
#1
HELLO
How to add click web button (urllib, python)
Thanks!
How to add click web button (urllib, python)
Thanks!
| Python urllib HELP filter_list | |
(04-14-2019, 12:03 AM)eClaire Wrote: Could you please be a bit more specific?
(04-14-2019, 11:57 AM)D0R3K Wrote:(04-14-2019, 12:03 AM)eClaire Wrote: Could you please be a bit more specific?
error: SyntaxError: invalid syntax
My code:
import urllib
f = raw_input("Add your mail: ")
b = raw_input("Add password: ")
x = raw_input("Target mail: ")
c = raw_input("Subject: ")
url = 'gmailurl'
data=urllib.urlencode{'Email or Phone':f 'submit': 'Next''Enter your password':b 'submit':'Next'}
op = urllib.urlopen('gmailurl',data)
(04-14-2019, 11:57 AM)D0R3K Wrote:(04-14-2019, 12:03 AM)eClaire Wrote: Could you please be a bit more specific?
error: SyntaxError: invalid syntax
My code:
import urllib
f = raw_input("Add your mail: ")
b = raw_input("Add password: ")
x = raw_input("Target mail: ")
c = raw_input("Subject: ")
url = 'gmailurl'
data=urllib.urlencode{'Email or Phone':f 'submit': 'Next''Enter your password':b 'submit':'Next'}
op = urllib.urlopen('gmailurl',data)
import urllib
f = input("Add your mail: ")
b = input("Add password: ")
x = input("Target mail: ")
c = input("Subject: ")
url = 'gmailurl'
to_encode = { 'Email or Phone':f, 'submit': 'Next', 'Enter your password':b, 'submit':'Next'}
data=urllib.urlencode(to_encode)
op = urllib.urlopen('gmailurl',data)(05-14-2019, 11:13 AM)Sartux Wrote:(04-14-2019, 11:57 AM)D0R3K Wrote:(04-14-2019, 12:03 AM)eClaire Wrote: Could you please be a bit more specific?
error: SyntaxError: invalid syntax
My code:
import urllib
f = raw_input("Add your mail: ")
b = raw_input("Add password: ")
x = raw_input("Target mail: ")
c = raw_input("Subject: ")
url = 'gmailurl'
data=urllib.urlencode{'Email or Phone':f 'submit': 'Next''Enter your password':b 'submit':'Next'}
op = urllib.urlopen('gmailurl',data)
Looks like you are using python 3 but using raw_input, and also not defining the encode string properly. Try this:
Code:import urllib f = input("Add your mail: ") b = input("Add password: ") x = input("Target mail: ") c = input("Subject: ") url = 'gmailurl' to_encode = { 'Email or Phone':f, 'submit': 'Next', 'Enter your password':b, 'submit':'Next'} data=urllib.urlencode(to_encode) op = urllib.urlopen('gmailurl',data)
(05-14-2019, 03:45 PM)D0R3K Wrote:(05-14-2019, 11:13 AM)Sartux Wrote:(04-14-2019, 11:57 AM)D0R3K Wrote: error: SyntaxError: invalid syntax
My code:
import urllib
f = raw_input("Add your mail: ")
b = raw_input("Add password: ")
x = raw_input("Target mail: ")
c = raw_input("Subject: ")
url = 'gmailurl'
data=urllib.urlencode{'Email or Phone':f 'submit': 'Next''Enter your password':b 'submit':'Next'}
op = urllib.urlopen('gmailurl',data)
Looks like you are using python 3 but using raw_input, and also not defining the encode string properly. Try this:
Code:import urllib f = input("Add your mail: ") b = input("Add password: ") x = input("Target mail: ") c = input("Subject: ") url = 'gmailurl' to_encode = { 'Email or Phone':f, 'submit': 'Next', 'Enter your password':b, 'submit':'Next'} data=urllib.urlencode(to_encode) op = urllib.urlopen('gmailurl',data)
Thanks!!!!!!!!!!!!!!!![]()
![]()
![]()
