Skip to content

Twitter bot that posts an image of a Shiba Inu every day and responds to mentions.

Notifications You must be signed in to change notification settings

sarahdepalo/twitter-bot

Repository files navigation

Inspirational Shiba Inu Twitter Bot

Tweet @daily_shiba_inu for an inspirational quote!

This bot was created with love and as a way to get back into Python coding. I've always been interested in automation and figured this was a great way to learn more about automation with Python.

The bot is a Flask application hosted on AWS. Currently, the bot tweets an inspirational quote from the Zen Quotes API alongside a random Shiba Inu image from the Shibe API. The Twitter API is then used to upload and post the image.

The bot also checks for mentions every 5 minutes and will respond to them with some wisdom!

Creating Your Own Bot

If you wish to use this project as a template for creating your own bot, do the following.

Prerequisites

  • Create a developer account with Twitter
  • Request elevated access to be able to use the API v2 (necessary to upload images)
  • Save your keys in a .env or somewhere safe.
  • Create an account with AWS or your hosting service of choice

Installation

# Clone the repo
$ git clone https://github.com/sarahdepalo/twitter-bot.git

# Change into the directory
$ cd twitterbot

# Install dependencies
$ pip install -r requirements.txt

# Swap out your credentials in constants.py
# Publish a post
$ python3 daily_post.py

🌸 Happy coding! 🌸

About

Twitter bot that posts an image of a Shiba Inu every day and responds to mentions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages