# youtube-captions-scraper-fix

> Scrap youtube auto-generated captions

Latest version **1.0.3** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install youtube-captions-scraper-fix
pnpm add youtube-captions-scraper-fix
yarn add youtube-captions-scraper-fix
bun add youtube-captions-scraper-fix
```

## 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.3 |
| Published | 2018-08-31 |
| First published | 2018-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 188.8 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 42 |
| Author | Algolia, Inc. |
| Maintainers | syzer |

## Links

- npm: https://www.npmjs.com/package/youtube-captions-scraper-fix
- Repository: https://github.com/syzer/youtube-captions-scraper
- Homepage: https://github.com/algolia/youtube-captions-scraper
- Issues: https://github.com/algolia/youtube-captions-scraper/issues
- npm.io page: https://npm.io/package/youtube-captions-scraper-fix

## Dependencies (4)

- [he](https://npm.io/package/he.md) ^1.1.1
- [axios](https://npm.io/package/axios.md) ^0.17.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [striptags](https://npm.io/package/striptags.md) ^3.1.0

## Recent versions

- 1.0.3 (latest) — 2018-08-31
- 1.0.2 — 2018-05-07

## README

# Youtube Captions scraper

> Fetch youtube user submitted or fallback to auto-generated captions
(Just a Fix to [youtube-captions-scraper](https://github.com/algolia/youtube-captions-scraper.git))

## Installation

* `> npm install -S youtube-captions-scraper-fix` OR
* `> yarn add youtube-captions-scraper-fix`

## Usage

```js
// ES6 / TypeScript
import { getSubtitles } from 'youtube-captions-scraper-fix';

getSubtitles({
  videoID: 'XXXXX', // youtube video id
  lang: 'fr' // default: `en`
}).then(captions => {
  console.log(captions);
});

// ES5
var getSubtitles = require('youtube-captions-scraper-fix').getSubtitles;

getSubtitles({
  videoID: 'XXXXX', // youtube video id
  lang: 'fr' // default: `en`
}).then(function(captions) {
  console.log(captions);
});
```

Captions will be an array of object of this format:

```flow js
{
  "start": Number,
  "dur": Number,
  "text": String
}
```

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