Skip to content

scripting/reallysimple

main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

reallysimple

A Node package that reads RSS-like feeds and calls back with a simple, consistent JavaScript object. Easy to use, hides the history.

Code example

I always like to see the code first...

const fs = require ("fs");
const reallysimple = require ("reallysimple");
const urlFeed = "https://rss.nytimes.com/services/xml/rss/nyt/World.xml";
reallysimple.readFeed (urlFeed, function (err, theFeed) {
	if (!err) {
		const jsontext = JSON.stringify (theFeed, undefined, 4);
		fs.writeFile ("test.json", jsontext, function (err) {
			});
		}
	});

Here's the file that's created when you run the code.

Why?

I needed a simple routine to call when I wanted to read a feed.

What formats are supported?

RSS, Atom, and RDF.

What we build on

Thanks to Dan MacTough for the feedparser package.

Comments, questions?

Post comments and questions in the issues section of this repo.

About

A Node package that reads RSS-like feeds and calls back with a simple, consistent JavaScript object.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published