Giter Club home page Giter Club logo

hellbug's Introduction

Hellbug

Sync your posts Hellsite (tumblr dot com) to Cohost.org

Setup

  1. Use python 3.9 or newer
  2. Clone this repo
  3. Install requirements with pip install -r requirements.txt
  4. Setup the following environment variables:
  • TUMBLR_KEY - your API key for Tumblr
  • TUMBLR_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 Cohost
  • COHOST_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 to txt. You can turn off tag filtering by setting this to an empty string export TUMBLR_TAG=""
  1. Run python main.py
  2. 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.

hellbug's People

Contributors

vallerieknight-unity avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.