npm.io
1.4.0-beta.1 • Published 5 years agoCLI

feed-me-up-scotty-with-date

Licence
AGPL-3.0
Version
1.4.0-beta.1
Deps
5
Size
39 kB
Vulns
0
Weekly
0

Feed me up, Scotty!

Generate RSS feeds for websites that don't have them, using CSS selectors.

To use, create a file feeds.toml, in which you can define the feeds to create as follows:

[funfacts]
title = "Wikipedia — did you know?"
url = "https://en.wikipedia.org/wiki/Main_Page"
entrySelector = "#mp-dyk > ul li"
titleSelector = "b"
linkSelector = "b a"

[wikivoyage]
title = "Wikivoyage recommendations" 
url = "https://en.wikivoyage.org/wiki/Main_Page" 
entrySelector = ".jcarousel-wrapper .jcarousel-item" 
titleSelector = "h2"
linkSelector = "h2 a" 

Then run:

npx feed-me-up-scotty

This will generate two RSS feeds in public/funfacts.xml and public/wikivoyage.xml. Additionally, it will generate a combined RSS feed in public/all.xml.