hello everyone
i'am looking up for way to enter web site "Login"
i tried this
login_form_seq = [
('user', 'Lick'),
('pass', 'Shot'),
('submit', 'login')]
A=urllib.urlencode(login_form_seq)
opener = urllib2.build_opener()
try:
site = opener.open('http://www.SMS-Example.com/user.php', A).read()
site2 = urllib.urlopen('http://www.SMS-Example.com/sms.php').read()
print site2
except(urllib2.URLError), msg:
print msg
site = ""
pass
but actually what I should put on submit
and login
? i put it randomly !!
thanks...