2.1.0 • Published 4 years ago
micro-rss-parser v2.1.0
A graphql microservice that parses rss feeds and returns a JSON representation of the given feed. It uses different parses installed from npm. When a parser fail it will try the next following this order: feedparser, rss-parser, feedme. To specify a specific parser see example queries below.
Installation
npm i -g micro-rss-parser
Usage
CLI for starting the server
$ micro-rss-parser --help
Usage: micro-rss-parser [options] [command]
Commands:
help Display help
Options:
-h, --help Output usage information
-H, --host [value] Host to listen on (defaults to "0.0.0.0")
-p, --port <n> Port to listen on (defaults to 3000)
-R, --raven-dsn Raven DSN. This is used to configure logging with sentry.io
-v, --version Output the version number
Example queries
feed(url: String, parser: Parser)
{
feed(url: "https://rolflekang.com/feed.xml") {
title
entries {
title
pubDate
link
}
}
}
Specifying the parser.
micro-rss-parser supports several of the rss parsers on npm. It can be specified with the parser option in a feed query as seen below.
Available parsers:
FEEDPARSER
- feedparserRSS_PARSER
- rss-parserFEEDME
- feedme
{
feed(url: "https://rolflekang.com/feed.xml", parser: FEEDPARSER) {
entries {
link
}
}
}
findFeed(url: String)
{
findFeed(url: "https://rolflekang.com") {
link
}
}
2.1.0
4 years ago
2.0.0
4 years ago
1.5.12
6 years ago
1.5.11
6 years ago
1.5.10
6 years ago
1.5.9
6 years ago
1.5.8
6 years ago
1.5.7
6 years ago
1.5.6
6 years ago
1.5.5
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago