Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
cquest ecbbf79a9a show retweets: RT xxxx pirms 7 gadiem
.gitignore gitignore to preserve secrets pirms 7 gadiem
LICENSE Initial commit pirms 7 gadiem
README.md first README pirms 7 gadiem
cron-sample.sh first commit pirms 7 gadiem
requirements.txt first commit pirms 7 gadiem
tootbot.py show retweets: RT xxxx pirms 7 gadiem

README.md

TootBot

A small python script to replicate tweets on a mastodon account.

The script only need mastodon login/pass to post toots.

It gets the tweets from RSS available at http://twitrss.me, then does some cleanup on the content:

  • twitter tracking links (t.co) are dereferenced
  • twitter hosted pictures are retrieved and uploaded to mastodon

A sqlite database is used to keep track of tweets than have been tooted.

This script is in use for a few accounts:

The script is simply called by a cron job and can run on any server (does not have to be on the mastodon instance server).