claabs / csgostatsgg-scraper

A consumable package to (heavy-handedly) scrape data from csgostats.gg
https://www.npmjs.com/package/csgostatsgg-scraper
MIT License
17 stars 3 forks source link
csgo-stats csgostatsgg scraper

csgostatsgg-scraper

A consumable Node package to (heavy-handedly) scrape data from csgostats.gg. Due to csgostats.gg not having an API, and being mostly protected by Cloudflare, the best approach is to spin up a headless browser to load the page and scrape it. Ulixee Hero is used to bypass Cloudflare and manage the DOM scraping.

Progress

Usage

Install

To start, it's best to run with a local Hero Core, so you should install @ulixee/hero-core as a peer dependency:

npm i csgostatsgg-scraper @ulixee/hero-core

Later, if you'd like to use a remote Hero Core, you can remove the @ulixee/hero-core peer dependency.