在tweepy中,我试图流式传输数据,但我只能在屏幕上显示少量的文本。我花了30分钟试图找到一个答案,但没有一个有效。我只是想获取完整的推文文本,谢谢 import tweepy
import json
from time import sleep
import requests
# Specify the account credentials in the following variables:
consumer_key = 'xxxxxxxxxx'
consumer_secret = 'xxxxxxxxxx'
access_token = '
因此,我目前试图从Twitter帐户挖掘推文,但我想排除转发,这样我就可以为我的项目获得200条推文数据。目前,我有一个可以工作的代码来挖掘数据馈送,但仍然包含了Re-Tweets。我发现,要排除Re-Tweets,您需要在代码中放入-RT,但我根本不知道放在哪里,因为我对编程非常陌生。
(当前使用Twitter API for Python (Tweepy)和使用Spyder的Python 3.6。)
import tweepy
from tweepy import OAuthHandler
import pandas as pd
consumer_key = 'consumer_
当我尝试使用tweepy进行twitter身份验证时,我得到了以下错误。
File "/usr/local/lib/python2.7/dist-packages/tweepy/models.py", line 146, in followers
return self._api.followers(user_id=self.id, **kargs)
File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 197, in _call
return metho