Get IDs of broadcast records from a BBC radio page for use with get_iplayer
- node.js Node 8.9.0+ (async/await usage with puppeteer)
git clone https://github.com/Vaviloff/program-ids.git && cd program-ids && npm i
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))
- url - an URL to search for IDs, required
- Array of IDs as strings.