rsshub.js

0.5.0 • Public • Published

rsshub.js

🍰 JavaScript library for RSSHub.

npm

Installation

yarn add rsshub.js

or if you prefer npm

npm i rsshub.js

Usage

If you don't know RSSHub, you should check it out before getting into this project.

RSSHub Feeds

Use any RSSHub Feeds as you already know how.

import feeds from 'rsshub.js/feeds'

feeds.bilibili.user_video({ uid: '2267573' })
     .rss2()
     // or .atom(), .json(), corresponding to three different format
     // or .get(), defaults to .rss2()
     .then((data) => {
         console.log(data)
     })

Request

If RSSHub.js doesn't catch up with RSSHub's feeds updates, use rsshub.request() to request a feed directly.

import rsshub from 'rsshub.js'
rsshub.request('/some/missing/feed')
      .rss2()

Config

rsshub.config() takes an config object of the same structure that axios does. For example if you want you call a RSSHub instance you deployed yourself instead of https://rsshub.app

import rsshub from 'rsshub.js'
rsshub.config({ baseURL: 'https://my-own-rsshub.com' })

Related projects

救救孩子!

RSSHub 怎么转眼就更新了那么多啊!!!求各位大佬给 RSSHub 贡献代码的时候也能到这边来同步更新一下5555……

License

RSSHub.js is MIT Licensed.

Copyright (c) 2018-present Shenghao "Doma" Lei

Readme

Keywords

none

Package Sidebar

Install

npm i rsshub.js

Weekly Downloads

0

Version

0.5.0

License

MIT

Unpacked Size

57 kB

Total Files

6

Last publish

Collaborators

  • sevenoutman