文件名称:feedtracker:跟踪RSS feed并获取预先美化的文章
文件大小:69KB
文件格式:ZIP
更新时间:2024-02-21 22:18:52
atom rss feeds AtomJavaScript
feedtracker 跟踪RSS提要并自动接收新文章。 快速开始 const Tracker = require ( 'feedtracker' ) const fetcher = new Tracker . Fetcher ( 10000 ) // Time in ms to check for new articles fetcher . addFeed ( url ) . then ( ( ) => /* success */ ) . catch ( err => /* handle error */ ) fetcher . on ( 'article' , ( article , feedLink ) => { // The article object is an Article object with processed values (that cleans up HTML/etc.). To get the raw article object, use article.raw. } ) fetcher . on ( 'err' , ( err , feed
【文件预览】:
feedtracker-master
----.github()
--------workflows()
----structs()
--------Feed.js(1KB)
--------Schedule.js(6KB)
--------Fetcher.js(2KB)
--------Article.js(12KB)
----util()
--------feedId.js(484B)
--------logic.js(4KB)
--------getArticles.js(1KB)
--------articleId.js(589B)
--------configs.js(208B)
----LICENSE(1KB)
----test()
--------structs()
--------util()
--------methods()
--------files()
----README.md(7KB)
----methods()
--------isolated.js(931B)
--------concurrent.js(530B)
----.gitignore(68B)
----index.js(215B)
----package-lock.json(70KB)
----package.json(1KB)