Skip to content

Files

Latest commit

 

History

History
 
 

tweet_bot

TWEETBOT

Setup and activate virtual environment :

For Unix based systems please execute the following command to create venv and install requirements.

make init
source .venv/bin/activate

Objectives

  • Follow Followers - followfollowers.py

    automatically follows anyone who follows you.

  • (F)ave star and retweet - favretweet.py

    automatically likes and retweets tweets that match certain criteria.

  • Autoreply - nlp Knowledge needed

  • tweet-cli - Ongoing

Requirements

Directory Structure

├── Dockerfile
├── requirements.txt
├── config.py
├── favretweet.py
└── followfollowers.py

USAGE:

Using Local/Remote machine:

This is compatible with Linux and OSx

$ make init
$ export CONSUMER_KEY="<Cosumer Key>"
$ export CONSUMER_SECRET="<Consumer Secret>"
$ export ACCESS_TOKEN="<Access Token>"
$ export ACCESS_TOKEN_SECRET="<Access Token Secret>"
$ source .venv/bin/activate # if pyenv is in use
$ python followfollowers.py # or faveretweet.py
Using tweet-cli in local machine
$ chomd +x tweet-cli.py
$ ln -s tweet-cli.py /usr/local/bin/tweet-cli
$ tweet-cli "this is my tweet from tweet-cli"

Using Docker-Container

Build the Docker Image
docker build -t fav-retweet-bot . 
Run the Docker Image
docker run -it -e CONSUMER_KEY="<Cosumer Key>" \
 -e CONSUMER_SECRET="<Consumer Secret>" \
 -e ACCESS_TOKEN="<Access Token>" \
 -e ACCESS_TOKEN_SECRET="<Access Token Secret>" \
 fav-retweet-bot

suggestions: Please open an issue and tag me @ashkankamyab