1.2.2 • Published 1 year ago

esea-scraper v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

CodeQL

esea-scraper

A consumable Node package to scrape data from ESEA. Due to ESEAs API being protected by Cloudflare, the best approach is to spin up a headless browser and scrape the API.
csgostatsgg-scraper is working as the base for this project.
Ulixee Hero is used to bypass Cloudflare and CORS.

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 esea-scraper @ulixee/hero-core

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

Example Usage

  • Typescript:
import { EseaScraper } from 'esea-scraper';

const esea = new EseaScraper();
await esea.getPlayer('2570455');
  • Javascript:
const eseaScraper = require('esea-scraper');
const esea = new eseaScraper.EseaScraper();
await esea.getPlayer('2570455');

Development

To contribute to the repo, you should install the dependencies of the project.

npm i

In order to verify your code works, you should make a relevant test for it, and check your tests pass using the following command:

npm run test
1.2.0

1 year ago

1.1.9

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago