Answer the question
In order to leave comments, you need to log in
How to parse python grab response correctly?
Such a question, I'm trying to make a parser for VKontakte accounts in python (python).
I'm stuck on the function of validating the login:password pair
here is the function
from grab import *
def isValid(login, passw):
grab = Grab(log_file='out.html')
grab.go("https://vk.com/login")
grab.set_input("email", login)
grab.set_input("pass", passw)
grab.submit()
#если логин успешный то return 1 иначе return 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question