Skip to content

A bot on Twitter to retweet optometry and ophthalmology related material.

License

Notifications You must be signed in to change notification settings

shivan-s/twitter-optom-bot

Repository files navigation

OptomBot - A Twitter Bot

Build Made by Shivan Sivakumaran

Introduction

This is a fun little project for me to get acquainted with twitter API through use of tweepy. In addition to this, I gain experience in deployment using Docker and Amazon EC2 instance and a Digital Ocean droplet.

The objective is to create a bot that favourites and retweets Optometry related posts on twitter.

Here is a blog post related to motivation and inception of the bot. Though this blog is slightly outdated.

Running it yourself

This requires creating your own requirement .env file and authenticated access for a bot account through https://dev.twitter.com.

The .env file is used to contain the environment variables, which will house the API keys and tokens. The file is structured as follows:

APIkey=<API Key>
APISecretKey=<API Secret Key>
BearerToken=<Bearer Token>
AccessToken=<Access Token>
AccessTokenSecret=<Access Token Secret>

Some more pre-requistes

This requires

  • pipenv
  • dockerand docker-compose
  • Any python 3.8.10

Link to the bot

Here is the bot on twitter.

Feedback

If you have any feedback, please get in touch with me.