Giter VIP home page Giter VIP logo

actionsflow-trigger-rsshub's Introduction

@actionsflow/trigger-rsshub

This is an Actionsflow rsshub trigger. With this trigger, you can easily get rsshub updates.

Install

npm i @actionsflow/trigger-rsshub

Usage

Single path:

on:
  rsshub:
    path: /smzdm/keyword/女装

Multiple paths:

on:
  rsshub:
    path:
      - /smzdm/keyword/女装
      - /36kr/news/latest
    config:
      limit: 15

Or, you can pass them separately:

on:
  rsshub:
    path:
      - path: /smzdm/keyword/女装
        query:
          param1: value
      - path: /36kr/news/latest
        query:
          param1: value
    config:
      limit: 15

Options

  • path, required, string or string[] or object[], when path is string[], then multiple rsshub feeds can trigger the action. For path value, you should check at rsshub, all rsshub routes are supported.

  • globalQuery, optional, object, rsshub global query, it will set to every rsshub request search. For example: {"limit":10,"filter":"test"}, for more query params, please see here

  • rsshubConfig, optional, object, rsshub init config, for more config settings, please see here

You can use General Config for Actionsflow Trigger for more customization.

Outputs

An outputs example:

{
  "title": "UNIQLO 优衣库 426026 女士牛仔抽绳连衣裙 - 79元",
  "description": "UNIQLO 优衣库 426026 女士牛仔抽绳连衣裙 ,采用100%棉质,舒适透气,款型舒适,腰部附带抽绳,便于调节松紧度。下单到手价79元,近期好价,喜欢的可以购买了。<br>天猫精选<br><img src=\"http://qny.smzdm.com/202003/24/5e796b40660e23474.jpg_d200.jpg\" referrerpolicy=\"no-referrer\">",
  "pubDate": "Wed, 23 Sep 2020 16:40:00 GMT",
  "link": "https://www.smzdm.com/p/25102718/",
  "__channel_title": "女装 - 什么值得买",
  "__channel_link": "http://search.smzdm.com/?c=home&s=%E5%A5%B3%E8%A3%85&order=time&v=b"
}

You can use the outputs like this:

on:
  rsshub:
    path: /smzdm/keyword/女装
jobs:
  print:
    name: Print
    runs-on: ubuntu-latest
    steps:
      - name: Print Outputs
        env:
          title: ${{on.rsshub.outputs.title}}
          description: ${{on.rsshub.outputs.description}}
          link: ${{on.rsshub.outputs.link}}
        run: |
          echo title: $title
          echo description: $description
          echo link: $link

actionsflow-trigger-rsshub's People

Contributors

theowenyoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actionsflow-trigger-rsshub's Issues

请问如何修改其中的rsshub依赖,以方便同步rsshub呢

您好,感谢您的actionsflow插件。
我看到您的代码中有依赖自己fork的rsshub仓库:
package.json"rsshub": "github:theowenyoung/RSSHub",
package-lock.json"rsshub": "github:theowenyoung/RSSHub","resolved": "git+ssh://[email protected]/theowenyoung/RSSHub.git#49e7cc8207516a27cf6954ca535e4b76cdb98ddf",

我想将他们改成自己fork的rsshub仓库,这样方便自己同步rsshub,从而可以访问最新rsshub源。
请问是否应该将上述依赖的fork仓库改成自己fork的仓库名,然后填写最新的commit号代替49e7cc8207516a27cf6954ca535e4b76cdb98ddf吗?

期待你的回复谢谢。

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.