eudaimonious / reddit-caller

A flask app that renders the top Reddit headline as xml and call to the Twilio API to read it over the phone.

Home Page:https://reddit-caller.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reddit-caller

A Flask app that renders the top Reddit headline as xml and call to the Twilio API to read it over the phone.

Details

In run.py, I've utilized PRAW: The Python Reddit API Wrapper to grab the "top" (ie, not "hot") submission off Reddit's front page. I then render the result in Twilio Markup XML at https://reddit-caller.herokuapp.com/.

I've used Heroku Scheduler to kick off make-call.py. This calls the Twilio REST API which will make a phone call and read off the contents of the xml page. I've instituted the following environment variables: SID (Twilio account SID), TOKEN (Twilio auth token), TO (phone number to receive the call, in the format +5551231234) and FROM.

About

A flask app that renders the top Reddit headline as xml and call to the Twilio API to read it over the phone.

https://reddit-caller.herokuapp.com/


Languages

Language:Python 100.0%