Simple Twitter bot that tweets cryptocurrency USD prices every hour.
- Modify bot.py, add your consumer/access key/secrets.
twitter.Api(consumer_key="YOUR_CONSUMER_KEY_HERE",
consumer_secret="YOUR_CONSUMER_SECRET_HERE",
access_token_key="YOUR_ACCESS_TOKEN_KEY_HERE",
access_token_secret="YOUR_ACCESS_TOKEN_SECRET_HERE")
- Create a cronjob:
$ crontab -e
- Add the following line, adjust based on your script path and desired frequency:
0 * * * * python3 /path/to/bot.py > /dev/null 2>&1