Giter Site home page Giter Site logo

rsshub.js's Introduction

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

rsshub.js's People

Contributors

sevenoutman avatar hyrious avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.