How to retrieve date and time from a tweepy status object?
datetime, tweepy
Solution
tweet = tweets[0]
print tweet.created_at
Output will be a datetime object. E.g.:
(Pdb) tweet.created_at
datetime.datetime(2012, 6, 3, 20, 9, 24)
For all attributes, see the Twitter API docs. Tweepy docs will also interest you.
Problem
Suppose I do ``` tweets = api.home_timeline() ``` It returns a list of 20 recent tweepy status objects that is posted on my timeline.And if I do ``` for tweet in tweets: print tweet.text ``` It prints 20 messages.Is it possible to retrieve the time the status was posted? What other attributes does the status object have? Help needed.