Created
April 16, 2016 04:46
-
-
Save plantvsbirds/23f8f7d98130c4e347c1870c119cc430 to your computer and use it in GitHub Desktop.
zhihu follower scrap
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
URL https://www.zhihu.com/people/plantvsbird/followers | |
<input type="hidden" name="_xsrf" value="87aaa16de8fd26f58bf4f9ca38d947f4"> | |
POST https://www.zhihu.com/node/ProfileFollowersListV2 | |
method:next | |
params:{"offset":20,"order_by":"created","hash_id":"9d62c47e2e6db82938c7bac0909b5e5b"} | |
_xsrf:87aaa16de8fd26f58bf4f9ca38d947f4 | |
upsert fan profile | |
reply.msg[x].match(/<a[^>]* href="([^"]*)"/)[1] | |
reply.msg[4].match(/<a[^>]* title="([^"]*)"/)[1] | |
get [] if reached end. | |
URL http://zhuanlan.zhihu.com/p/20579150/voters | |
GET http://zhuanlan.zhihu.com/api/posts/20579150/likers | |
?limit=20, offset=20 | |
return a json array, reply[x].name, reply[x].profileUrl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment