我无法从 tweepy 导入 Stream。

huangapple go评论44阅读模式
英文:

I cannot import Stream from tweepy

问题

我已安装 tweepy,版本为 4.14.0

但是当我尝试使用
from tweepy import Stream

时,我收到错误信息ImportError: cannot import name 'Stream' from 'tweepy'

我认为这之前是可以工作的,API 有什么变化吗?

英文:

I have tweepy installed, version 4.14.0

However when I try
from tweepy import Stream

I obtain the error ImportError: cannot import name 'Stream' from 'tweepy'

I think this was working before, has anything changed in the API?

答案1

得分: 1

API v1.1 status/filter端点的支持似乎已被移除。
更改日志在此处:https://docs.tweepy.org/en/stable/changelog.html#twitter-api-backwards-incompatible-changes

英文:

It looks like support for the API v1.1 status/filter endpoint may have been removed.

Changelog here: https://docs.tweepy.org/en/stable/changelog.html#twitter-api-backwards-incompatible-changes

huangapple
  • 本文由 发表于 2023年5月11日 18:48:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76226795.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定