Twitter bot that downloads images from r/pasta and tweets them in combination with a pre-written tweet and a currently trending hashtag.
Install requirements.txt with pip:
pip install -r requirements.txt
Before running pastabot.py, a few nltk corpora need to be downloaded:
import nltk
nltk.download('stopwords', 'wordnet', 'punkt', 'averaged_perceptron_tagger')
Start the bot:
$ python3 pastabot.py
- Automatically creates config.ini file on the first run.
- Fill in API keys for Twitter and Reddit and run again.
- Creates a working directory containing the downloaded images as pastapics.
- Sleeps for 12-18 hours after each tweet.
- tweet.txt file contains tweet templates that can be added upon/edited.