Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from TwitterAPI import TwitterAPI
- import json
- api = TwitterAPI('', '', '', '')
- next_cursor = '-1'
- for x in range(0, 46):
- r = api.request('followers/list', {'screen_name':'canalarte1','include_user_entities':'true','count':'200','cursor':next_cursor})
- userlist = json.loads(r.text)
- next_cursor = userlist['next_cursor']
- print(next_cursor)
- print(r.status_code)
- with open("followers.txt", "a") as text_file:
- text_file.write(r.text)
Add Comment
Please, Sign In to add comment