连接中出现python名称错误的twitter api

2024-09-30 01:25:29 发布

您现在位置:Python中文网/ 问答频道 /正文

from twitter import Twitter
t = Twitter(
    auth=OAuth(
         oauth_token, oauth_token_secret, 
         CONSUMER_KEY, CONSUMER_SECRET
    )
)
pythonTweets = t.search.tweets(q = "#python")
print(pythonTweets)

它回来了 名称错误回溯(最近一次呼叫) 在()

^{pr2}$

名称错误:未定义名称“OAuth”


Tags: keyfromimport名称tokenauthsecretconsumer

热门问题