Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
/ tootbot Public archive

Python tool for mirroring Reddit posts to Twitter and Mastodon

License

Notifications You must be signed in to change notification settings

corbindavenport/tootbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tootbot

This is a Python bot that looks up posts from specified subreddits and automatically posts them on Twitter and/or Mastodon. It is based on reddit-twitter-bot. Tootbot was created for the @ItMeIRL Twitter account, and is now used on a variety of other accounts.

Features:

  • Tootbot can post to both Twitter and Mastodon
  • Media from Gfycat, Imgur, Reddit, and Giphy is automatically attached in the social media post (unless the video file is too large or cannot be converted into a GIF)
  • Links that do not contain media can be skipped, ideal for meme accounts like @ItMeIRL
  • NSFW content and self-posts can be filtered
  • Tootbot can monitor multiple subreddits at once
  • Tootbot is fully open-source and runs locally, so you don't have to give an external service full access to your social media account(s)

Tootbot uses the tweepy, PRAW, py-gfycat, imgurpython, Pillow, and Mastodon.py libraries.

Disclaimer

The developers of Tootbot hold no liability for what you do with this script or what happens to you by using this script. Abusing this script can get you banned from Twitter, so make sure to read up on proper usage of the Twitter API.

Setup and usage

For instructions on setting up and using Tootbot, please visit the wiki.