既然twitter已经将字符数从140增加到280,我怎样才能使用我的tweetpy api来获取整条推文?
这就是我现在的代码:
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)
我试图添加这个:tweet_mode ='扩展' 在:
results = api.search(q=keyword.name, count=100, include_entities=True)
但它返回Status对象中缺少文本属性的错误。