Skip to Content
Learn
Using the Twitter API
Understanding Twitter Results I

We’ve done a lot of work, but we still haven’t seen any data from Twitter. Let’s fix that!

The GetUserTimeline() method returns will return data from Twitter in the form of a Python list, so we can use a for loop to print out the tweets from the data we retrieved.

For example:

statuses = twitter_api.GetUserTimeline(screen_name=handle, count=200, include_rts=False) for status in statuses: print status

Instructions

1.

On the next line, print out the statuses using a for loop. Use status as the iterator. Use the example above to help you.

Click Run to save your code.

Folder Icon

Take this course for free

Already have an account?