Serve feeds from scraped HTML.
npm install scrape-to-feed
At the root of your project, create a
feedsdirectory. This directory will contain exported modules for defining your feeds, one feed per file.
Add a feed. Here is an example,
moduleexports =url: ""title: "NYT example feed"...;
- Create and serve your feeds:
- Your feed will be available at:
By default, all feeds will be re-scaped and rebuilt every hour. You can pass a custom interval, like so:
1000 * 60 * 60 * 24; // Update feeds once per day.