# nitro9

> BBC iPlayer available programmes via Nitro

Latest version **1.1.1** (published 2016-04-24) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install nitro9
pnpm add nitro9
yarn add nitro9
bun add nitro9
```

## 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.1.1 |
| Published | 2016-04-24 |
| First published | 2016-04-16 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mike Ralphson |
| Maintainers | mermade |
| Keywords | bbc, nitro, api, iplayer |

## Links

- npm: https://www.npmjs.com/package/nitro9
- Repository: https://github.com/MikeRalphson/Nitro9
- Homepage: https://github.com/MikeRalphson/Nitro9#readme
- Issues: https://github.com/MikeRalphson/Nitro9/issues
- npm.io page: https://npm.io/package/nitro9

## Dependencies (2)

- [sqlite3](https://npm.io/package/sqlite3.md) latest
- [bbcparse](https://npm.io/package/bbcparse.md) ^1.1.6

## Recent versions

- 1.1.1 (latest) — 2016-04-24
- 1.1.0 — 2016-04-24
- 1.0.0 — 2016-04-16

## README

# Nitro9

A tool to index available programmes on the BBC iPlayer / radio-player for offline analysis.

This is a scraper that runs on [Morph](https://morph.io). Please read [the Morph.io documentation](https://morph.io/documentation).

It can also be run locally.

Set an environment variable called `MORPH_API_KEY` to your Nitro API key. When initially run on an empty / non-existant database, a
full scrape of available programmes is performed. Subsequently, only those programmes broadcast since the last update will be added.
Programmes passed their expiry date are removed.

To build a full index again, either delete the database or set the environment variable `MORPH_REBUILD` to `true`.

Usage: `node scraper.js`

Output is an sqlite3 database containing one table, "data":

````javascript
	var fields = [
		'#index',
		'type',
		'name',
		'pid',
		'available',
		'expires',
		'episode',
		'seriesnum',
		'episodenum',
		'versions',
		'duration',
		'desc',
		'channel',
		'categories',
		'thumbnail',
		'timeadded',
		'guidance',
		'web',
		'vpids'
	];
````

Also included is a simple command line utility called `query.js` for performing SQL queries against the remote Morph.io database and
returning the rows in JSON format.

Usage: `node query {SQL-statement}`

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