May 2019
Beginner
528 pages
29h 51m
English
After authenticating with Twitter, you can use the Tweepy API object’s get_user method to get a tweepy.models.User object containing information about a user’s Twitter account. Let’s get a User object for NASA’s @nasa Twitter account:
In [6]: nasa = api.get_user('nasa')
The get_user method calls the Twitter API’s users/show method.9 Each Twitter method you call through Tweepy has a rate limit. You can call Twitter’s users/show method up to 900 times every 15 minutes to get information on specific user accounts. As we mention other Twitter API methods, we’ll provide a footnote with a link to each method’s documentation in which you can view its rate limits.
Read now
Unlock full access