Giter Site home page Giter Site logo

pictor13 / retweeter Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 40 KB

[Python script] Search for Twitter mentions containing a string of interest and retweet them with a (randomly picked) message.

Python 100.00%
retweet-bot twitter-api mention-detection retweet-tweets twitter-bot

retweeter's Introduction

retweeter

Search for Twitter mentions containing a specific string and retweet them with a message (picked randomly from a list of configured messages).

Requirements:

  • python >= 3.6
  • pip install tweepy
  • pip install pyyaml

Usage:

  • git clone [email protected]:Pictor13/retweeter.git && cd retweeter
  • duplicate .dist config file and customise them
    • cp config.yaml.dist config.yaml and put your config
    • remember to set the secrets in the API.authentication config
  • python retweet.py --help to show available parameters

Default usage:

  • python retweet.py --dry-run false to run actually performing operations

retweeter's People

Contributors

pictor13 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

spininelfianco

retweeter's Issues

On some platforms is necessary to disable output buffer

On the development machine (macOS Mojave 10.14.6, Python 3.8.3) the script outputs to shell without issues, but on other platforms (e.g. Windows) looks like the output buffer is enabled by default.

As a temporary fix is necessary to run the script with python -u retweeter.py, in order to disable the buffering and display output from the program at the time that it is printed (rather than when execution is halted).

TO DO: the behaviour should be the same on each platform (macOS/Linux/Windows).

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.