Now that twitter has increased the number of characters from 140 to 280 how can I use my tweetpy api in order to get the whole tweet?
This is how my code is right now:
for search in Search.objects.all():
if search.is_enabled:
for keyword in search.keywords.all():
results = api.search(q=keyword.name, count=100, include_entities=True)
for result in results:
print ("results", dir(result))
print " ID: %s" % result.id
print " From: %s" % result.user.name.encode('utf-8')
print " Created : %s" % result.created_at
print " %s" % result.text.encode('utf-8')
self.loadtweet(search, result)
I tried to add this: tweet_mode='extended' in the:
results = api.search(q=keyword.name, count=100, include_entities=True)
but it returns an error of missing text attribute in Status object.