Created
January 22, 2018 08:08
-
-
Save anonymous/dee2672188fb65cd68f2f00132fa5f4b 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
# coding:utf8 | |
import requests | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', | |
'authorization': 'oauth c3cef7c66a1843f8b3a9e6a1e3160e20', | |
} | |
params = { | |
'include': 'data[*].answer_count,articles_count,gender,follower_count,is_followed,is_following,badge[?(type=best_answerer)].topics', | |
'offset': '20', | |
'limit': '20', | |
} | |
print requests.get('https://www.zhihu.com/api/v4/members/wang-ni-ma-94/followers', headers=headers, params=params).json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment