Created
May 5, 2011 07:13
-
-
Save jollychang/956661 to your computer and use it in GitHub Desktop.
Login Douban by Curl
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
#登陆豆瓣 | |
#基于协议利用Curl测试页面 | |
#change EMAIL and PASSWORD | |
curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" –L -c cookie -d 'form_email=EMAIL&form_password=PASSWORD&user_login=登录' https://www.douban.com/accounts/login >login.html | |
#获取我的豆瓣的页面 | |
curl -L -b cookie http://www.douban.com/mine >my.html | |
#获取某人的友邻列表 | |
curl -L -b cookie http://www.douban.com/contacts/listfriends | |
#利用其他的东西,获得所有的友邻 #给这个友邻发个豆邮问候一下 cul -d ‘......' http://www.douban.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment