Sync your posts Hellsite (tumblr dot com) to Cohost.org
- Use python 3.9 or newer
- Clone this repo
- Install requirements with
pip install -r requirements.txt
- Setup the following environment variables:
TUMBLR_KEY
- your API key for TumblrTUMBLR_URL
- the URL of the Tumblr blog you wish to sync. this does support custom domains!COHOST_EMAIL
- the email you use to login to CohostCOHOST_PASS
- your password for Cohost- [Optional]
COHOST_PROJECT
- the page you want to post to on Cohost. If not specified, will use your default page - [Optional]
TUMBLR_TAG
- the tag required on a post for Hellbug to sync it. Defaults totxt
. You can turn off tag filtering by setting this to an empty stringexport TUMBLR_TAG=""
- Run
python main.py
- The latest matching tumblr post will be posted to Cohost!
To run this automatically, set this script up in a Cron job. Be wary of Tumblr's API limits of 5000 API calls a day - do not run this script more than once every 5 seconds.
As of now the script will only get the latest post, and will not recurse back.