0.5.0 • Published 6 years ago

rsshub.js v0.5.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

:cake: 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

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago