【问题标题】:Tweepy : AttributeError : Status object has no attribute _jsonTweepy:AttributeError:状态对象没有属性_json
【发布时间】:2016-03-01 13:26:09
【问题描述】:

我正在尝试构建一个 Twitter 爬虫,它将爬取指定用户的所有推文,并将它们保存为 json 格式。尝试使用 Status 的 _json 属性将 Status 对象转换为 json 格式时,出现以下错误:

AttributeError : 'Status' object has no attribute '_json'

谁能帮我解决这个问题?

【问题讨论】:

  • 您似乎正在尝试访问 _json 属性,该属性在 Status 对象上不存在...分享您的代码,以便我们了解发生了什么。

标签: python json tweepy


【解决方案1】:

一旦我将tweepy 版本升级到 3.5.0,_json 属性就会开始工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-18
    • 1970-01-01
    • 2020-01-10
    • 2014-01-27
    • 2021-09-05
    • 2016-05-09
    相关资源
    最近更新 更多