feeed
A simple tool to generate RSS feeds for any webpage, support puppeteer.
WARNING: still under development.
Installation
Make sure you have `nodejs` >= 7.6.0 and `npm` installed beforehand
``` shell
npm i -g feeed
Usage
first of all, create a sites.js
like this:
moduleexports =// cron time patterns for the jobcron: '*/30 * * * *' // run the job every 30 minutes// target webpagelink: 'https://movie.douban.com/cinema/nowplaying/hangzhou/'// limit of item number for RSS feedslimit: 30// if you want to use puppeteer, please install it in your projectusePuppeteer: false// customize the way to get items{// use $ just like using jQueryconst list = ;// should use an array as return valueconst res = ;list;return res;};
then run
feeed -c ./sites.js -d ./rss
it will create a RSS file for the site inside rss
directory and regist a cron job based on your configure.
And check out available options with
feeed --help