You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble wrapping api.followers_ids with Cursor when the api parser is JSONParser(). Here's an example. Not sure if this is a problem with other API calls. Any ideas?
api = tweepy.API(auth, parser=tweepy.parsers.JSONParser())
for f in Cursor(api.followers_ids).items():
print f
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-56-df1d83b05c72> in <module>()
----> 1 for f in Cursor(api.followers_ids).items():
2 print f
3
/Users/mike/miniconda/lib/python2.7/site-packages/tweepy/cursor.pyc in next(self)
183 self.page_index += 1
184 self.num_tweets += 1
--> 185 return self.current_page[self.page_index]
186
187 def prev(self):
KeyError: 0
The text was updated successfully, but these errors were encountered:
mikepqr
changed the title
Cursor + JSONParser + api.followers_ids()
Cursor + JSONParser + followers_ids()
Nov 24, 2014
I'm having trouble wrapping api.followers_ids with Cursor when the api parser is JSONParser(). Here's an example. Not sure if this is a problem with other API calls. Any ideas?
The text was updated successfully, but these errors were encountered: