Raspberry Pi twitter bot

General discussion for the Raspberry Pi computer and user projects
Post Reply
User avatar
hackinformer
Site Admin
Posts: 688
Joined: Sun Feb 16, 2014 3:30 pm

Raspberry Pi twitter bot

Post by hackinformer » Fri Aug 22, 2014 8:58 pm

Lets show you how to set up your Raspberry Pi to send Twitter messages.
Step 1: Install Twython packages
Image

I'm using ssh to access to Raspberry Pi. My IP address for the SD card for this is 10.0.1.62. Your IP address may be different — just change the address accordingly.

Open the Terminal window and on the command line, type:
ssh pi@10.0.1.62
If you are running directly hooked into the monitor, you can skip this step.

Run the latest package updates and upgrades, just to make sure everything is current — you will have to have wifi access for this step. Type in the commands:
sudo apt-get update

sudo apt-get upgrade
There will be a lot of waiting and Linux garble, so take break and pet your cat. Now, install the Twython libraries, which will let you use Twitter from Python using these three commands:
sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install twython
You'll see more Linux stuff and then you should be good to go.
Last edited by hackinformer on Fri Aug 22, 2014 9:01 pm, edited 1 time in total.
Post Reply