Skip to content

akolosovich/rss-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Parser

Lightweight and fast rss-parser with minimal dependencies.

Usage

const { rssParser } = require('@akolosovich/rss-parser');

// import { rssParser } from '@akolosovich/rss-parser';

const data = rssParser.parseString(...);

console.log(data);

Motivation

Why to write my own parser instead of using existing one?

Firstly, I didn't find any parsers which return the same data format no matter which RSS feed I submit.

Secondly, since no one is following proper specification in their RSS feeds, I wanted to be able to parse any "incorrect" feeds (eg, Enclosure according to spec is only one per item, however many feeds add more than one).

Thirdly, I wanted to create private RSS server as a replacement for public one (eg feedly), and for this purpose I wanted to have better understanding of RSS data structure.

TODO

  • fix dates
  • parse and filter languages
  • use proper tests

Specs and Namespaces

Links