Skip to content
Taveras Solutions · Go to home
Book a diagnostic

MITPython

Raspberry-Cam-Instagram-Quotes

A Raspberry Pi that takes photos and posts them with nature quotes.

A script that captures an image with the Pi camera, picks a random quote, and posts it to Twitter and Instagram. It is a small, early hardware automation project.

Stars
3
Forks
1
Language
Python
License
MIT

THE PROBLEM

It shows in a single file how to go from a physical photo to a social post with no manual steps.

Who it's for

Anyone starting with Raspberry Pi who wants a short example of camera plus automatic posting.

WHAT IT DOES

  • Captures a photo with PiCamera and timestamps the file name.
  • Picks a random nature quote from a fixed list.
  • Posts the image with the quote to Twitter through Twython.
  • Posts the same image to Instagram with the quote as the caption.

How it's built

  1. Capture PiCamera takes the photo and saves it on the Pi.
  2. Quote app.py picks a random quote from its list.
  3. Posting Twython uploads the image to Twitter and Instabot posts it to Instagram.

Stack

PythonRaspberry PiInstagram API

Getting started

pip install twython instabot picamera
Fill in the Twitter keys and the Instagram user in app.py
python app.py

Need something like this built for you?

We use these same tools in our client projects.