Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andrews1022/reddit-stock-scraper

A simpe node script to scrape reddit for most mentioned stock tickers
https://github.com/andrews1022/reddit-stock-scraper

fun javascript node reddit scraper stocks

Last synced: 1 day ago
JSON representation

A simpe node script to scrape reddit for most mentioned stock tickers

Awesome Lists containing this project

README

        

# Reddit Stock Scraper

This is a simple Node based Reddit scraper for finding which stocks are getting the most mentions. As of Mar 2, 2021, this project uses only the following packages:

- Cheerio (for the scraping)
- ESLint (to enforce code quality)
- ESM (to allow the use of import instead of require)
- Node-Fetch (for fetching the data)
- Prompt (to get user input for custom/dynamic results)

## Usage

Make sure you have [Node.js](https://nodejs.org/en/) installed first.

`npm install`

`npm run scrape`

Then simply enter in the subreddit name you wish to scrape (case sensitive), and the number of results you want.

And that's it!