目录

Dependencies: jq and snscrape

sudo apt install jq
pip3 install snscrape

Run as a cronjob:

*/15 * * * * /data/data/com.termux/files/usr/bin/bash /data/data/com.termux/files/home/update.sh 20
0 1 * * * /data/data/com.termux/files/usr/bin/bash /data/data/com.termux/files/home/update.sh 100
0 0 1 * * /data/data/com.termux/files/usr/bin/bash /data/data/com.termux/files/home/update.sh 3200

Make sure to have some way of running it

cd /data/data/com.termux/files/home/like-counter
git pull
/data/data/com.termux/files/usr/bin/bash update.sh $1 /data/data/com.termux/files/usr/bin/python "TWITTER_BEARER_TOKEN" "USER_ID"
git add index.html likes.txt followers.txt
git commit -m "data update"
git push
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号