tweepyを使用して、hereのスクリプトを使用してユーザーのタイムラインからツイートを取得しています。しかし、ツイートは切り捨てに来ている:tweepyで "user_timeline"から完全なツイートテキストを取得
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)
戻り値:
、いくつかのi
ため、
後者で
...
がテキストを置き換え
#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
ようnew_tweets[i].text.encode("utf-8")
表示され
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,
...
通常はTwitterに表示されます。
私の要求に全文を手に入れるためにtruncated=True
をどのように上書きできるか知っていますか?代わりにfull_textの
あなたはそのリターンを受け取るために何をしている:フルつぶやきのテキストを取得するために、次に
? –
遅い返事をして申し訳ありません、ちょうどこれを見ました - 私はちょうど 'new_tweets [0]'を印刷しています。 – atkat12
[Tweepy Truncated Status]の重複している可能性があります(http://stackoverflow.com/questions/42050289/tweepy-truncated-status) – mountrix