npm.io
1.0.3 • Published 10 years ago

tunein_scraper

Licence
MIT
Version
1.0.3
Deps
3
Vulns
1
Weekly
0

Tunein Radio npm module

Everything returns a promise.

tunein.searchForShow("search terms")

Searches for a specified show. Returns a list of shows.

tunein.getEpisodesOfShow(show)

Specify a show, and it will return a list of episodes of that show.

tunein.getStreamData(episodes[0])

Specify an episode to get the location of the stream for the specified episode.

Coffeescript Example

tunein.searchForShow("stuff you should know").then (show) ->
  console.log show[0].name

  tunein.getEpisodesOfShow(show[0]).then (episodes) ->
    console.log episodes[0].name

    tunein.getStreamData(episodes[0]).then (stream) ->
      console.log stream