Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.
/ p2fb Public archive

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

License

Notifications You must be signed in to change notification settings

miguelmota/p2fb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published