# Construct the API instance
api = tweepy.API(auth)
-Pagination
-==========
-
-.. code-block :: python
-
- # Iterate through all of the authenticated user's friends
- for friend in tweepy.Cursor(api.friends).items():
- # Process the friend here
- process_friend(friend)
-
- # Iterate through the first 200 statuses in the home timeline
- for status in tweepy.Cursor(api.home_timeline).items(200):
- # Process the status here
- process_status(status)
-
FollowAll
=========