Skip to content

Instantly share code, notes, and snippets.

@jollychang
Created May 5, 2011 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jollychang/956661 to your computer and use it in GitHub Desktop.
Save jollychang/956661 to your computer and use it in GitHub Desktop.
Login Douban by Curl
#登陆豆瓣
#基于协议利用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