Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2018 08:08
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 anonymous/dee2672188fb65cd68f2f00132fa5f4b to your computer and use it in GitHub Desktop.
Save anonymous/dee2672188fb65cd68f2f00132fa5f4b to your computer and use it in GitHub Desktop.
# 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