V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
biuyixia
V2EX  ›  程序员

使用免费的推特开发者账户,还有办法获取特定用户的推文吗?

  •  
  •   biuyixia · 249 天前 · 1469 次点击
    这是一个创建于 249 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用接口: https://api.twitter.com/2/users/44196397/tweets 错误消息:{"client_id":"xxxx","detail":"When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.","registration_url":"https://developer.twitter.com/en/docs/projects/overview","title":"Client Forbidden","required_enrollment":"Appropriate Level of API Access","reason":"client-not-enrolled","type":"https://api.twitter.com/2/problems/client-forbidden"}

    使用接口: https://api.twitter.com/1.1/collections/list.json?screen_name=elonmusk&count=1 错误消息:{"errors":[{"message":"You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product","code":453}]}

    以前用的好好的,老马收购后不讲武德,胡改乱改。 通过搜索报错内容,从 4 月份都有人问了,发现大部分老外都说必须得花钱订阅,我看最便宜的都得 100 刀,那还玩个鸡儿。 我的开发者账户好像是学术的也不行。 跪求不花钱的办法。

    6 条回复    2023-12-26 01:16:36 +08:00
    Leo666666
        1
    Leo666666  
       249 天前
    可以换种思路,就是用自己账号的 token 来写爬虫,现在免费的开发者账号只能用来发推和删推样,不能进行查询😓
    flyqie
        2
    flyqie  
       249 天前 via Android
    不花钱的办法就是抓网页 api 然后用无头浏览器做请求或者注入 js 。。

    不然 twitter 的风控和 cookies 有效期足够喝一壶了的。。
    lzgshsj
        3
    lzgshsj  
       249 天前   ❤️ 2
    biuyixia
        4
    biuyixia  
    OP
       247 天前 via Android
    @lzgshsj 太牛啦大佬,谢谢。这个应该也能自己部署吧,我看有开源项目。
    xxlsJourney
        5
    xxlsJourney  
       124 天前
    @lzgshsj 不错的工具,有什么办法能获取用户的 follower 和 following 吗?😂
    xxlsJourney
        6
    xxlsJourney  
       124 天前
    @lzgshsj 有什么办法能获取用户的 follower 和 following 吗?😂
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1084 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.