Git Product home page Git Product logo

herdingbats / twitter-repeater Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chooper/twitter-repeater

0.0 1.0 0.0 308 KB

twitter-repeater is a bot that automatically retweets any tweets in which its name is "mentioned" in. In order for a tweet to be retweeted, the bot account must be following the original user who tweeted it, that user must not be on the ignore list, and the tweet must pass some basic quality tests.

License: MIT License

Python 100.00%

twitter-repeater's Introduction

twitter-repeater is a bot that automatically retweets any tweets in which its name is "mentioned" in. In order for a tweet to be retweeted, the bot account must be following the original user who tweeted it and the tweet must pass some basic quality tests.

The idea was originally inspired by the @SanMo bot and was created so I could use something similar for New London, CT (@NLCT)

It runs well on Linux but it should run just as well on Mac OSX or Windows.

Installation

Heroku

  1. Click the Heroku button:

    Deploy

  2. Fill in the fields after creating a new app on the Twitter's Developer page

  3. Configure the scheduler to run the repeater every 10 minutes

    1. heroku addons:open scheduler

    2. Click Add Job and enter:

      • Task: ./repeater.py
      • Dyno size: 1X
      • Frequency: Every 10 minutes
    3. Click Save

You're all done!

Traditional (Linux)

Sorry, but these steps are mostly untested and written from memory. Please send me a pull request if you find a mistake.

  1. Check the code out of git: git clone [email protected]:chooper/twitter-repeater.git

  2. Go to Twitter's Developer page and create a new application

  3. Configure your repeater app with the Oauth credentials twitter gave you

    1. cp .env.sample .env and fill in the environment variables
  4. Install dependencies (consider a virtualenv): pip install -r requirements.txt

  5. Test that it works: source .env ; ./repeater.py

  6. Add a cronjob to run the bot:

*/10     *       *       *       *       /path/to/repeater/repeater.py

twitter-repeater's People

Contributors

chooper 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.