May 2019
Beginner
528 pages
29h 51m
English
Cursors: Getting an Account’s Followers and FriendsWhen invoking Twitter API methods, you often receive as results collections of objects, such as tweets in your Twitter timeline, tweets in another account’s timeline or lists of tweets that match specified search criteria. A timeline consists of tweets sent by that user and by that user’s friends—that is, other accounts that the user follows.
Each Twitter API method’s documentation discusses the maximum number of items the method can return in one call—this is known as a page of results. When you request more results than a given method can return, Twitter’s JSON responses indicate that there are more pages to get. Tweepy’s Cursor class handles these details for ...
Read now
Unlock full access