The main idea was to build an easy going script able to post from a folder containing paintings, image as tweets. The script could be deployd on a web service in order to be fully automated ! (This bot is now hosted on a free EC2 AWS server since 17th of November 2021) Bots make twitter a cooler place and permit also to see my favorite pieces of art each day on the app ! :) Reminder: This is a 1.0.0, the code is very simple but efficient.
Some tasks for the future :
- Host all the images on a database.
Run shell script on a machine with python already installed:
./installtion.sh
Run manually the code after creating your environement
python ./bot/bot.py
Build image:
docker build . -t artbot-twitter
Run:
docker run -it -e CONSUMER_KEY="your consumer key" \
-e CONSUMER_SECRET="your consumer secret" \
-e ACCESS_TOKEN="your access token" \
-e ACCESS_TOKEN_SECRET="your token secret" \ artbot-twitter
Install lib manually from requirements.txt on an env:
pip install -r requirements.txt
conda install --file requirements.txt