Coder Social home page Coder Social logo

tweitwit's Introduction


Simple bot for twitter.

Coded with ๐Ÿ’™ by edoardottt

Description โ€ข Install โ€ข Usage โ€ข Notes โ€ข Contributing โ€ข License
live demo running on @ai_testing

Description ๐Ÿ”ฆ

Simple twitter bot that can like and retweet your tweets, or search tweets with a specified topic. It stores and serves data with a Flask webapp. ๐Ÿฆ

Installation ๐Ÿ“ก

  • git clone https://github.com/edoardottt/twitterbot2
  • cd twitterbot2
  • pip install -r requirements.txt
  • Edit the config.yaml and globals.py files
  • python init_db.py
  • python twitterbot2.py -h

Usage ๐Ÿš€

usage: twitterbot2.py [-h] [-v] [-t] [-k KEYWORD] [-p PORT] [-nu] [-nl] [-nr] [-s STATS] [-oc OUTPUT_CSV] [-oj OUTPUT_JSON] [-oh OUTPUT_HTML]

Twitterbot v2

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         Show the version of this program.
  -t, --timeline        Search for tweets in the bot and user's timeline.
  -k KEYWORD, --keyword KEYWORD
                        Search for tweets with defined keyword(s). If more than one, comma separated enclosed in double quotes.
  -p PORT, --port PORT  Set the port to be used (default 5555).
  -nu, --no-user        Don't like and retweet user tweets.
  -nl, --no-like        Don't like tweets, just retweet.
  -nr, --no-retweet     Don't retweet tweets, just like.
  -s STATS, --stats STATS
                        Show the statistics of the inputted bot (username).
  -oc OUTPUT_CSV, --output-csv OUTPUT_CSV
                        Produce a csv file containing the stats for the inputted used (ALL for anyone).
  -oj OUTPUT_JSON, --output-json OUTPUT_JSON
                        Produce a json file containing the stats for the inputted used (ALL for anyone).
  -oh OUTPUT_HTML, --output-html OUTPUT_HTML
                        Produce a html file containing the stats for the inputted used (ALL for anyone).

See some examples to get started.

Useful notes/links ๐Ÿ”—

Changelog ๐Ÿ“Œ

Detailed changes for each release are documented in the release notes.

Contributing ๐Ÿค

If you want to contribute to this project, you can start opening an issue/pull request.
Read also Code of Conduct and Contributing files.

License ๐Ÿ“

This repository is under GPLv3 License.
edoardoottavianelli.it to contact me.

tweitwit's People

Contributors

edoardottt avatar

Watchers

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