Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
podcast-parser
Advanced tools
Readme
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 16 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.