This repository hosts code for the implementation of the Twitter bot @SafariParkBot.
The bot will collect animal images via the Flickr API, and then transform a randomly selected picture using the K-means clustering segmentation algorithms provided through scikit-image.
The bot posts at a user-defined interval. You can also tweet an image at the bot and it will process the image for you.
After installing the required packages, clone the GitHub Repository and obtain the 1) Twitter API Authentication credentials and a 2) Flickr API Key.
We use the awesome tweepy API to access Twitter. You will also need to install scikit-image and the requests libraries.
pip install scikit-image
pip install tweepy
pip install requests
Simply get the bot up and running with:
python safaribot.py
Below are some of my favorite posts from the bot: