+------------------------------------------+--------------------------------------+
| `GET followers/ids`_ | :meth:`API.followers_ids` |
+------------------------------------------+--------------------------------------+
- | `GET followers/list`_ | :meth:`API.followers` |
+ | `GET followers/list`_ | :meth:`API.get_followers` |
+------------------------------------------+--------------------------------------+
| `GET friends/ids`_ | :meth:`API.friends_ids` |
+------------------------------------------+--------------------------------------+
.. automethod:: API.followers_ids
-.. automethod:: API.followers
+.. automethod:: API.get_followers
.. automethod:: API.friends_ids
count=100).items(250):
print(status.id)
- for page in tweepy.Cursor(api.followers, screen_name="TwitterDev",
+ for page in tweepy.Cursor(api.get_followers, screen_name="TwitterDev",
count=200).pages(5):
print(len(page))
def testfriends(self):
self.api.friends(screen_name=username)
- @tape.use_cassette('testfollowers.yaml', serializer='yaml')
- def testfollowers(self):
- self.api.followers(screen_name=username)
+ @tape.use_cassette('testgetfollowers.yaml', serializer='yaml')
+ def testgetfollowers(self):
+ self.api.get_followers(screen_name=username)
@tape.use_cassette('testverifycredentials.json')
def testverifycredentials(self):
@pagination(mode='cursor')
@payload('user', list=True)
- def followers(self, **kwargs):
- """followers(*, user_id, screen_name, cursor, count, skip_status, \
- include_user_entities)
+ def get_followers(self, **kwargs):
+ """get_followers(*, user_id, screen_name, cursor, count, skip_status, \
+ include_user_entities)
Returns a user's followers ordered in which they were added. If no user
is specified by id/screen name, it defaults to the authenticated user.
return self._api.friends(user_id=self.id, **kwargs)
def followers(self, **kwargs):
- return self._api.followers(user_id=self.id, **kwargs)
+ return self._api.get_followers(user_id=self.id, **kwargs)
def follow(self):
self._api.create_friendship(user_id=self.id)