# ir-cookie-scraper

> Small package to scrape a cookie from the iRacing member site

Latest version **1.0.1** (published 2021-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install ir-cookie-scraper
pnpm add ir-cookie-scraper
yarn add ir-cookie-scraper
bun add ir-cookie-scraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-08-09 |
| First published | 2021-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Karl-Heinz Wallwitz |
| Maintainers | 0xkalle |
| Keywords | iRacing, cookie |

## Links

- npm: https://www.npmjs.com/package/ir-cookie-scraper
- Repository: https://github.com/kuhldata/ir-cookie-scraper
- Homepage: https://kuhldata.com
- Issues: https://github.com/kuhldata/ir-cookie-scraper/issues
- npm.io page: https://npm.io/package/ir-cookie-scraper

## Recent versions

- 1.0.1 (latest) — 2021-08-09
- 1.0.0 — 2021-08-09

## README

# ir-cookie-scraper

This package scrapes a cookie from the iRacing member website for you using (puppeteer)[https://github.com/puppeteer/puppeteer].

## how to install
Just do the usual

`npm i ir-cookie-scraper`

and you are done.

## usage

**1. get the cookie**

```js
const scraper = require('ir-cookie-scraper`);

const yourFunction = async () => {
  const cookieString = scraper.scrapeCookie('user@example.com', 'superSecretPassword');
  console.log(cookieString);
  // Should log the cookie string: Pretty long, pretty ugly, multiple parts separated by ";"

}
```

**2. use cookie**

After you get the pretty ugly cookie string, just put it into the `Cookie` header in your requests to the iRacing API.

**

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