Created
January 26, 2015 04:57
-
-
Save beyoung/80d1038c657a80ab0bca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "https://www.douban.com/accounts/login" | |
params = | |
{ | |
"form_email":"***", | |
"form_password":"***", | |
"source":"index_nav" | |
} | |
with requests.Session() as c: | |
c.post(url,data=params) | |
request =c.get('http://www.douban.com/') | |
print request.text.encode('utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment