小编Mel*_*J13的帖子

“API”对象没有使用 Tweepy 的属性“搜索”

我正在尝试为我正在做的一个项目抓取 Twitter 个人资料。我有以下代码

from tweepy import OAuthHandler
import pandas as pd

"""I like to have my python script print a message at the beginning. This helps me confirm whether everything is set up correctly. And it's nice to get an uplifting message ;)."""

print("You got this!")

access_token = ''
access_token_secret = ''
consumer_key = ''
consumer_secret = ''

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)

tweets = []

count = 1

"""Twitter will automatically sample the …
Run Code Online (Sandbox Code Playgroud)

python api twitter search tweepy

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

api ×1

python ×1

search ×1

tweepy ×1

twitter ×1