RSSHub: Twitter routes no longer work
路由地址
/twitter/user/:id/:routeParams?
完整路由地址
/twitter/user/:id/:routeParams?
相关文档
https://docs.rsshub.app/en/routes/social-media#user-timeline-3
预期是什么?
返回用户时间线.
实际发生了什么?
演示站:
Route requested: /user/DIYgod
Error message: Response code 429 (Too Many Requests): target website might be blocking our access, you can host your own RSSHub instance for a better usability.
Helpful Information to provide when opening issue: Path: /user/DIYgod Node version: v18.17.1 Git Hash: 0d0ec74
自建站: Server Timeout
本地:
Route requested: /user/DIYgod
Error message: Response code 404 (Not Found): target website might be blocking our access, you can host your own RSSHub instance for a better usability.
Helpful Information to provide when opening issue: Path: /user/DIYgod Node version: v18.17.0 Git Hash: 115a334
部署
RSSHub 演示 (https://rsshub.app)
部署相关信息
No response
额外信息
.
这不是重复的 issue
- 我已经搜索了现有 issue,以确保该错误尚未被报告。
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 26 (7 by maintainers)
If the situation continues, we may consider adding account credentials, just like https://github.com/zedeus/nitter/pull/830
用了 selenium,python 写大概就像下面这样,其中
turn_on_notification
是用 selenium 点击 Turn on notification 按钮。参考。收到的通知里面就已经包含了全部内容,但 reply 和 likes 不会有通知。我是收到通知后,再用 twitter-api-client 这个来抓一下。
能否不采用轮询的方式,加入 account credentials 后,开启关注 twitter 账户的 notifications,收到该账户的发推通知后,再用 rsshub 抓取,这样是否就可以避免频繁抓取导致封号了?
我开启 notifications 后,在 firefox 浏览器上都能很及时收到,不知道 rsshub 能否模拟浏览器来接收通知。
use one of the nitter instances at https://status.d420.de/ – some of them have RSS
guest account branch in nitter is still WIP, but it works with some extra coding and infra
still 404
For anyone else wondering how to implement this first run this script
it will output a guest token and token secret like this
then add this to your .env file
and restart RSSHub 👍
Wowowow, that’s big news. I wasn’t expecting this issue can be solved within this year. I haven’t tried it out yet, but again, very appreciated for maintainers of this wonderful project
Closed in 9032153c7de4c9ca189482d495696986e9795106
程序调试就只能你自己做了,说实话 turn_on_notification 那个函数代码都需要的话,我就不太建议你自己写了,就放弃吧。 我的代码有很多我自己的东西,没法发给你。