N
N
nikitc2015-04-11 20:38:28
User identification
nikitc, 2015-04-11 20:38:28

Authorization on the site using Grab Python?

Good evening, I’m trying to log in to my circle, I can’t log in through moikrug.ru itself, so I have to use pda-passport.yandex.ru/passport?mode=mauth
, after that I go to moikrug.ru and request the contents of the page, this is what it displays:
window. location.replace("http\x3A\x2F\x2Fmoikrug\x2Eru\x2F\x3Fncrnd\x3D2221"); If you see this page, it means that your browser does not support automatic redirection. Click on this link to continue.
Can anyone suggest how to deal with this? Thanks in advance, I'm attaching the code

from grab import Grab
g = Grab(log_file='out.html')
g.go('http://pda-passport.yandex.ru/passport?mode=mauth')
g.set_input("login",  "login")
g.set_input("passwd", "***")
g.submit()
g.go("http://moikrug.ru/")
print (g.xpath_text('//*'))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question