Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.01 KB

README.MD

File metadata and controls

24 lines (21 loc) · 1.01 KB

Subreddit downloader

  • This python code download a target subreddit of reddit
  • Do not need reddit API key
  • subreddit_downloader.py do not use any API, but it can download only unarchived submissions(live submissions)
  • subreddit_downloader_pushshift_api.py uses Pushshift API, and it download 5 years of the inputed subreddit from now (you can change it in the code by changing '5y' to '1m', '60d', etc.).
  • The data will be saved as a xlsx format

How to use

python subreddit_downloader.py [subreddit name]

or

python subreddit_downloader_pushshift_api.py [subreddit name]

Requirement

  • Python > 3.7 (This code uses f-string to string formatting)
  • Pandas

Others