Search code examples
pythonpython-twitter

python-twitter retrieving all followers


I'm using the python-twitter library and while I can get the code to retrieve a 'set' of results, apparently in the first 'page' ... I for the life of me can't find the right code to get a set of ALL the followers for a specific account/handle.

I'm using this snip...

target = sys.argv[1]

#returns a twitter.User instance for each follower
users = api.GetFollowers(target) 
print [u.screen_name for u in users]

I'd appreciate any pointers, if someone's figured this out already?

Thanks in advance. /Raf


Solution

  • According to this patch, I guess it has been fixed. Check this sample code.