This script allows the user to scrape up to 1024 posts, and associated comments, from the specified subreddit.
The praw
module and valid reddit API credentials are required for the script to
function correctly.
The subreddit name is required; all other command-line arguments are optional.
A keyboard interrupt (Ctrl-C) can be used to stop the gathering process and immediately write any collected information to disk.
- Clone this repository.
pip install -r requirements.txt
./reddit-scraper.py --help
For a more detailed explanation of how PRAW works, please visit the PRAW documentation.