Vaviloff / program-ids

Get IDs of radio programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

program-ids

Get IDs of broadcast records from a BBC radio page for use with get_iplayer

Requirements

  • node.js Node 8.9.0+ (async/await usage with puppeteer)

Installation

git clone https://github.com/Vaviloff/program-ids.git && cd program-ids && npm i

Usage

const getIds = require('program-ids');

(async() => {
    const ids = await getIds('https://www.bbc.co.uk/programmes/m000btvz/episodes/player');
    console.log(ids);
})()

or

getIds('https://www.bbc.co.uk/programmes/m000btvz/episodes/player').then((ids) => console.log(ids))

Options

  • url - an URL to search for IDs, required

Results

  • Array of IDs as strings.

CircleCI

Build Status

About

Get IDs of radio programs

License:MIT License


Languages

Language:JavaScript 95.3%Language:HTML 4.7%