使用Debian获取Twitter 访问API #13934
aaro-n
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
因为之前创建的twitter api被封,已经很长时间没用twitter了,看了RSSHub文档,发现可以创建匿名api访问Twitter,以下记录。
步骤
1.先查看文档地位,https://docs.rsshub.app/zh/routes/social-media#twitter ,https://docs.rsshub.app/zh/install/config#twitter ,https://github.com/zedeus/nitter/wiki/Guest-Account-Branch-Deployment#guest-accounts
2.环境准备,Debian执行
sudo apt-get install curl jq3.创建
twitter.sh脚本,从 https://github.com/zedeus/nitter/wiki/Guest-Account-Branch-Deployment#guest-accounts 获取,23年12月1日,内容如下保存
4.赋予脚本执行权限,
chmod +x twitter.sh5.执行脚本,获取匿名API,
./twitter.sh注意事项
请详细阅读文档,并注意第3步代码版本。
Beta Was this translation helpful? Give feedback.
All reactions