Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
podcast-parser
Advanced tools
Welcome to the Podcast Parser for NodeJS.
With this module, you can download a podcast feed to a object.
$ npm install podcast-parser --save
var podcastParser = require('podcast-parser');
// podcastParser.execute(url, options, callback)
podcastParser.execute(
'http://feeds.serialpodcast.org/serialpodcast',
{},
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.download(url, callback)
podcastParser.download(
'http://feeds.serialpodcast.org/serialpodcast',
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.download(url, options, callback)
podcastParser.download(
'http://feeds.serialpodcast.org/serialpodcast',
{ timeout: 60 },
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
// podcastParser.parse(xml, options, callback)
podcastParser.parse(
'<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel>' +
'<title>Nerdcast – Jovem Nerd</title><item><title>Nerdcast 514 ' +
'– Turistas Babacas 2</title><enclosure' +
' url="https://jovemnerd.com.br/podpress_trac/feed/148003/0/nc514.mp3"' +
' length="73512785" type="audio/mpeg" /></item></rss>',
{},
function (err, res) {
if (err) {
console.log(err);
return;
}
console.log(res);
});
podcastParser.execute(url, options, callback)
Given the feed url, returns the object representation of the feed
string
)
string
: return as string
: Fri, 29 Apr 2016 06:27:42 +0000
array
: return as array
: [ 2016, 3, 29, 6, 27, 42 ]
number
: return as number
: 20160329062742
date
: return as Date
: new Date(2016, 3, 29, 6, 27, 42)
string
)
string
: return as string
: 1:41:56
array
: return as array
: [ 1, 41, 56 ]
number
: return as number
: 14156
string
)podcastParser.download(url, [options], callback)
Download the feed from the URL
string
)podcastParser.parse(xml, options, callback)
Parse to a object, the representation of the feed
string
)
string
: return as string
: Fri, 29 Apr 2016 06:27:42 +0000
array
: return as array
: [ 2016, 3, 29, 6, 27, 42 ]
number
: return as number
: 20160329062742
date
: return as Date
: new Date(2016, 3, 29, 6, 27, 42)
string
)
string
: return as string
: 1:41:56
array
: return as array
: [ 1, 41, 56 ]
number
: return as number
: 14156
FAQs
Feed parser with focus in podcasts
The npm package podcast-parser receives a total of 2 weekly downloads. As such, podcast-parser popularity was classified as not popular.
We found that podcast-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.