Python script using praw to download images and gifs (as mp4
) from any subreddit.
- Create a reddit app here.
- Add config.py with following contents to project root directory.
client_id='my client id' client_secret='my client secret' user_agent='my user agent' username='my username' password='my password'
- Run:
pip3 install praw
python3 scraper.py
Example: To download images from 'wallpapers' subreddit. Dowloaded files are in tmp/