# esportal-scraper

> Pull Esportal profile data

Latest version **1.3.2** (published 2024-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install esportal-scraper
pnpm add esportal-scraper
yarn add esportal-scraper
bun add esportal-scraper
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2024-11-08 |
| First published | 2023-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 7 |
| Unpacked size | 533.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Apina-32 |
| Maintainers | apina-32 |
| Keywords | esportal, api, csgo, scraper |

## Links

- npm: https://www.npmjs.com/package/esportal-scraper
- Repository: https://github.com/sruusk/esportal-scraper
- Issues: https://github.com/sruusk/esportal-scraper/issues
- npm.io page: https://npm.io/package/esportal-scraper

## Dependencies (7)

- [debug](https://npm.io/package/debug.md) ^4.3.4
- [p-queue](https://npm.io/package/p-queue.md) ^6.6.2
- [steamid](https://npm.io/package/steamid.md) ^2.0.0
- [@ulixee/net](https://npm.io/package/@ulixee/net.md) ^2.0.0-alpha.28
- [chrono-node](https://npm.io/package/chrono-node.md) ^2.7.5
- [@ulixee/hero](https://npm.io/package/@ulixee/hero.md) ^2.0.0-alpha.28
- [@ulixee/commons](https://npm.io/package/@ulixee/commons.md) ^2.0.0-alpha.28

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.3.2 (latest) — 2024-11-08
- 1.3.1 — 2024-10-19
- 1.3.0 — 2024-10-19
- 1.2.0 — 2024-04-13
- 1.1.0 — 2024-04-08
- 1.0.6 — 2023-05-27
- 1.0.5 — 2023-05-19
- 1.0.4 — 2023-05-12
- 1.0.3 — 2023-05-01
- 1.0.2 — 2023-05-01
- 1.0.1 — 2023-05-01
- 1.0.0 — 2023-05-01

## README

# esportal-scraper

A consumable Node package to scrape data from Esportal.
Due to Esportal API being protected by Cloudflare, the best approach is to spin up a headless 
browser and scrape the API.  
[Ulixee Hero](https://ulixee.org/docs/hero) is used to bypass Cloudflare.

## 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:

```shell
npm i esportal-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:  
```js
import { EsportalScraper } from 'esea-scraper';

const esportal = new EsportalScraper();
await esportal.getPlayer('76561199023463910');
```

- Javascript:  
```js
const esportalScraper = require("esportal-scraper");
const esportal = new esportalScraper.EsportalScraper;
await esportal.getPlayer("76561199023463910")
```

---
_Source: https://npm.io/package/esportal-scraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
