Skip to content

edoardottt/twitterbot2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c9a3bee Β· May 10, 2022
Apr 25, 2022
Sep 20, 2021
Feb 28, 2022
May 10, 2022
Sep 15, 2021
Jul 28, 2021
Jul 28, 2021
Jul 28, 2021
Mar 19, 2022
Oct 18, 2021
Jul 28, 2021
Jan 14, 2022
Oct 13, 2021
Jan 4, 2022
Sep 5, 2021
Nov 15, 2021
Sep 18, 2021
Sep 17, 2021
Nov 17, 2021
May 10, 2022
Sep 5, 2021
Mar 22, 2022
Nov 15, 2021
May 10, 2022

Repository files navigation


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] [-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.
  -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 here some examples to get started.

Useful notes/links πŸ”—

Contributing 🀝

Just open an issue/pull request.
Read also Code of Conduct and Contributing files.

License πŸ“

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