а также
ользую tweepy для извлечения твитов с временной шкалы пользователя, используя прилагаемый скриптВот, Тем не менее, твиты приходят в усеченном:
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret)
api = tweepy.API(auth)
new_tweets = api.user_timeline(screen_name = screen_name,count=200, full_text=True)
Возвращает:
Status(contributors=None,
truncated=True,
text=u"#Hungary's new bill allows the detention of asylum seekers
& push backs to #Serbia. We've seen push backs before so\u2026 https://
t.co/iDswEs3qYR",
is_quote_status=False,
...
Для некоторыхi
, new_tweets[i].text.encode("utf-8")
выглядит как
#Hungary's new bill allows the detention of asylum seekers &
push backs to #Serbia. We've seen push backs before so…https://t.co/
iDswEs3qYR
Где...
в последнем заменяется текст, который обычно отображается в твиттере.
Кто-нибудь знает, как я могу переопределитьtruncated=True
получить полный текст по моему запросу?