p2fb

0.0.6 • Public • Published

Podcast to Flash Briefing

Generate an Alexa Flash Briefing skill JSON feed from an iTunes podcast XML feed URL.

Install

npm install p2fb

Usage

  • p2fb(string podcastUrl, [number count]) -> {Promise}

    • podcastUrl is required.

    • count option limits the number of items to return in flash briefing JSON feed.

Example

const p2fb = require('p2fb')
 
const podcastUrl = 'https://thisweekincrypto.co/feed/podcast'
const flashBriefingJson = await p2fb(podcastUrl)
 
console.log(flashBriefingJson)
 
/*
[
  {
    "uid": "urn:guid:http://www.blubrry.com/ostlive/36405839/",
    "updateDate": "2018-08-21T20:59:00.0Z",
    "titleText": "Welcome to OST LIVE (Trailer)",
    "mainText": "",
    "streamUrl": "https://media.blubrry.com/ostlive/content.blubrry.com/ostlive/ost_live_ep_000.mp3",
    "redirectionUrl": "https://www.blubrry.com/ostlive/36405839/welcome-to-ost-live-trailer/"
  },
  ...
]
*/

CLI

Install

npm install -g p2fb

Usage

$ p2fb {podcast_feed_url} [options]
  • options

    • -c, --count = {number}

Example

$ p2fb https://thisweekincrypto.co/feed/podcast -c 2
 
[
  "uid""urn:guid:http://www.blubrry.com/ostlive/36423907/",
  "updateDate""2018-08-22T20:37:36.0Z",
  "titleText""What is Simple Token (OST)? An Overview With CEO Jason Goldberg",
  "mainText""",
  "streamUrl""https://media.blubrry.com/ostlive/content.blubrry.com/ostlive/ost_live_ep_001.mp3",
  "redirectionUrl""https://www.blubrry.com/ostlive/36423907/what-is-simple-token-ost-an-overview-with-ceo-jason-goldberg/"
  ...
]

Resources

License

MIT

Package Sidebar

Install

npm i p2fb

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

6.22 kB

Total Files

8

Last publish

Collaborators

  • miguelmota