Scrape Reddit utilising Decodo's Web Scraping API
BeautifulSoup
Once you have an active Web Scraping API subscription, you can try sending a request right from the dashboard Web Scraping API > API playground method tab simply by clicking on Send Request. You will also see an example of a curl request generated on the right.
Parser type | Example location | Download |
---|---|---|
HTML to JSON | reddit_python_scraper.py | curl https://raw.githubusercontent.com/Decodo/reddit-python-scraper/blob/main/reddit_python_scraper.py > reddit_python_scraper.py |
This Python script extracts Subreddit details, post data, and comments straight from the HTML of Reddit post pages and saves them to a JSON file.