Skip to content

Similar in many ways to the livestream functionality within voussoir/timesearch, but uses mySQL and some different praw functionality

Notifications You must be signed in to change notification settings

kimbernator/RedditStream_MySQL

Repository files navigation

RedditStream_MySQL

Requirements

  • Recent Python version. This was developed using 3.6.0.
  • PRAW 5 - This was initially made using 5.2, but 5.3 has also been tested and seems to work fine.
  • Created an OAuth app at https://reddit.com/prefs/apps. Make it script type, and set the redirect URI to http://localhost:8080. The title and description can be anything you want, and the about URL is not required.
  • Use this PRAW script to generate a refresh token. Just save it as a .py file somewhere and run it through your terminal / command line. For simplicity's sake, I just choose all for the scopes.
  • Fill out bot.py with your OAuth information
  • Fill out settings.py with your database connection information (The schema in your database must already exist and write permissions must be granted to the user.)

Credit to /u/GoldenSights for some of the above instructions relating to OAuth

Usage

  • python scraper.py <subreddit_name> e.g python scraper.py funny

About

Similar in many ways to the livestream functionality within voussoir/timesearch, but uses mySQL and some different praw functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages