1.0 -> 1.0.1
============
+ changing profile and background images [DONE]
-+ prepare for social graph changes mentioned on mailinglist
+ finish search api
+ autodetect authenticated user's ID [DONE]
+ command line client example
+ retweet api [DONE BUT NEEDS TESTING]
+ async requests
++ prepare for social graph changes mentioned on mailinglist
print 'Public timeline...'
for status in public_timeline:
print status.text
- print 'from: %s' % status.user.screen_name
+ print 'from: %s' % status.author.screen_name
"""
Tweepy provides a non-authenticated instance of the API for you already
print 'Friends timeline...'
for status in friends_timeline:
print status.text
- print 'from: %s' % status.user.screen_name
+ print 'from: %s' % status.author.screen_name
""" The End
extend the Cache interface class (tweepy/cache.py).
Then when you create your API instance pass it in.
"""
-my_api = tweepy.API(cache=MyCache())
+#my_api = tweepy.API(cache=MyCache())
""" The End """
cache_result = api.cache.get(url, timeout)
if cache_result:
# if cache result found and not expired, return it
- cache_result._api = api # restore api reference to this api instance
+ # must restore api reference
+ if isinstance(cache_result, list):
+ for result in cache_result:
+ result._api = api
+ else:
+ cache_result._api = api
return cache_result
# Open connection