A python twitter bot origionally developed to be ran on a raspberry pi that grabs information from PetFinder API and posts tweets to Cute Pets Boise This script is designed to run and be done. Below is information on setting up a cron job to run this multiple times at set intervals.
In order to utilize any code contained in this repository one needs to follow the proper guide for installing python on their operating system.
Installing Python on Windows
Installing Python on Linux With apt
Installing Python on Mac
We utilize the python package manager get-pip to keep all our external code needs up to date, to install please follow this guide after installing python.
Installing get-pip
This project requires 1 package from the package manager
pip install python-twitter
You need to login or create an account at petfinder Petfinder.
Follow the on screen steps to get an API key and place it in the quotes for petfinder_api_key
in apikeys.py
.
How to setup Twitter API Access is a great guide for setting this up.
Setting up a basic cron job in linux
After setup has been completed you can run the script by issuing python cutepets.py