help with sign in to a site

o2ri

New member
Jul 24, 2013
22
0
0
that is the form:

<form method="post" action="/login">
<input type="text" name="username" placeholder="שם משתמש" />
<input type="password" name="password" placeholder="סיסמה" />
<input type="submit" name="submit_login" class="blue" value="התחבר" />
<span class="green" id="signup"><a href="/signup" rel="nofollow">הירשם</a></span>
</form>

and this is the code i tried:

url = 'http://www.sdarot.tv/login'
values = {'username' : '****',
'password' : '*****' ,
'submit_login' : 'התחבר'}

data = urllib.urlencode(values)
cookies = cookielib.CookieJar()

opener = urllib2.build_opener(
urllib2.HTTPRedirectHandler(),
urllib2.HTTPHandler(debuglevel=0),
urllib2.HTTPSHandler(debuglevel=0),
urllib2.HTTPCookieProcessor(cookies))

response = opener.open(url, data)
the_page = response.read()
http_headers = response.info()


not working, any idea?
 

Mikey1234

Banned
May 6, 2012
1,441
0
0
UK
Use chrome and hit F12


Hit network tab

then when you login look for Post

And you'll see all parameters in the box next to it what you need to use to login
 

o2ri

New member
Jul 24, 2013
22
0
0
cannot get to 'http://www.sdarot.tv/login' in chrome what site is it ?
well their site is down right now.

its a site movies and tv shows where the uploads allready have subtitles built in ( for lazy ppl)
so no testing tonight , maybe i should go to sleep