I am trying to override the method called GetFollowerIDs of this class: https://github.com/bear/python-twitter/blob/master/twitter.py#L3705
What I want to achieve is executing the function normally then get next_cursor
not just result
.
I tried the following:
class MyApi(twitter.Api):
def GetFollowerIDs(self, *args, **kwargs):
super(MyApi, self).GetFollowerIDs(*args, **kwargs)
print result
print next_cursor
I got this error:
TypeError: unbound method GetFollowerIDs() must be called with MyApi instance as first argument (got nothing instead)
When calling it like this:
ids = MyApi.GetFollowerIDs(
screen_name=options['username'],
cursor=cursor,
count=options['batch-size'],
total_count=options['total'],
)
On top of that, result
and next_cursor
are already showing as not defined in my IDE.