sol33t / moviesbot

Comments with streaming, rental, and purchase options to movies mentioned on Reddit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MoviesBot

MoviesBot is a reddit bot that looks for IMDB links in reddit posts and replies with links to stream, rent, and purchase the movies. The IMDB links are crossrefrenced with Can I Stream.it to populate the information.

Comments include a table with all information that was found for the movies listed.

moviesbot screenshot

This reddit bot runs on Google App Engine, and once configured, can be uploaded to run in GAE and run with the resources provided with the free quotas

Quickstart for deploying in Google App Engine

  1. Go to the Google Developers Console and click on Create Project

  2. Fill out the form, and take note of your Project ID

  3. clone this repo and save to the name of the project ID

git clone https://github.com/stevenviola/moviesbot.git

  1. Copy the config template and fill out with reddit account info

cp config-template.yml config.yaml

  1. Deploy to Google App Engine

google_appengine/appcfg.py update [project id]/

Configuration File Explination

Reddit

user: username

The username that you use to sign into Reddit with

password: supersecretpassword

The password that you use to sign into Reddit with

client_id: clientid

client_secret: clientsecret

For the client info, in the apps section of reddit prefrences, you need to create an app, and get this info from the app page

Imgur

Imgur is currently not used, and this is a placeholder for future implemention

Rotten Tomatoes

We currently do not need to authenticate to get the Rotten Tomatoes information. This section is a placeholder if there is information we will need from Rotten Tomatoes that requires authentication

TODO

  • Utilize Google App Engine Task Queues for parallel processing when retriving post information
  • Create frontend to view stats on most mentioned movies on Reddit

Further Reading

The moviesbot FAQ details how to interact with this bot on Reddit

Credits

All code in this repository was developed by Steven Viola

Information id provided by the OMDb API and Can I Stream.It

About

Comments with streaming, rental, and purchase options to movies mentioned on Reddit

License:GNU General Public License v2.0


Languages

Language:Python 100.0%