Learn
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.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.