I wanna get some data from site, which requires loggin in. I log in by requests
url = \"http://example.com\" response = requests.get(url, {
Why not login by dryscrape?
session = dryscrape.Session() session.visit('') name = session.at_xpath('//*[@name="username"]') # Where name.set("") password = session.at_xpath('//*[@name="password"]') # Where password.set("") # Push the button name.form().submit() session.visit("")