Created
November 6, 2011 07:08
-
-
Save iwinux/1342582 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /bin/bash | |
for i in {1..9999} | |
do | |
curl http://www.sysulove.com/lovetree/myapp/index.php/Friend/friendPersonalPage/friend_id/$i --cookie "<Paste your browser cookies here>" > $i.html | |
sleep 0.5 | |
done |
我刚刚测试还是可以的。你要用Firebug(或者Chrome Dev Tools)把你用户请求的 cookie copy 下来,贴到 curl 的 --cookie 参数里,这样才能通过用户认证。
弄好了firebug,firecookie,cookie里面有PHPSESSID 等好几个,--cookie参数应该怎么填了?
这一组 cookie 值用分号隔开,然后用引号包起来,示例:
curl --cookie "rtime=1; ltime=xxxxxxx; cnzz_eid=xxxx; PHPSESSID=xxxxxx; cnzz_a3581173=xxx; sin3581173="
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
被修复了,怎么办?