2024-09-30 01:25:29 发布
网友
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)
它回来了 名称错误回溯(最近一次呼叫) 在()
名称错误:未定义名称“OAuth”
解决方案是从twittersdk导入OAuth。将行更新为:
from twitter import Twitter, OAuth
解决方案是从twittersdk导入OAuth。将行更新为:
from twitter import Twitter, OAuth
相关问题 更多 >
编程相关推荐