An open API service indexing awesome lists of open source software.

https://github.com/mohit-s96/reddit_crawler

bot for crawling reddit listings and saving data locally
https://github.com/mohit-s96/reddit_crawler

filesystem nodejs reddit-api reddit-crawler

Last synced: about 2 months ago
JSON representation

bot for crawling reddit listings and saving data locally

Awesome Lists containing this project

README

        

## Reddit listing crawler

#### Retrieves reddit listing data for a given endpoint and stores them into small chunked text files

### Note

#### modhash and session cookie are required only if you want to fetch nsfw subreddits as well.

To obtain modhash:

Login to reddit on your desktop and visit https://www.reddit.com/api/me.json , you can get the modhash in the json data returned.

To obtain the reddit session cookie

Open browser devtools -> application -> cookies and copy the cookie with the name reddit_session. Then create a cookie string as "reddit_session=YOUR_SESSION_COOKIE" and paste it in the request (or the .env file)

#### I recommend hosting with heroku, its free and easy to set up.