Coder Social home page Coder Social logo

Comments (10)

xiaozhikang0916 avatar xiaozhikang0916 commented on May 16, 2024 1

其实就是相当于增加一个通用的rss provider,然后依靠RSSHub转换各种线上资源为通用rss格式了

from kubespider.

jwcesign avatar jwcesign commented on May 16, 2024

可以描述一下大致的实现思路吗?如通过什么方式配置,从哪里获取聚合的rss

@xiaozhikang0916 by the way, 你觉得怎样?

from kubespider.

ijwstl avatar ijwstl commented on May 16, 2024

订阅源可以通过向本地部署的RSS-HUB发送请求获取,用户手动配置进去,RSS-HUB文档在此https://docs.rsshub.app/。可以设置通用的rss source provider,其中目前provider的接口内容有部分字段需要用户手动配置,例如file_type,需要用户根据自己设定的rss资源类型进行变更。至于执行频次的用户配置可以使用flask_apscheduler,设定最小更新为1h,循环检测用户配置的rss内容,通过check_time和exec_time判断本次定时任务该rss配置是否需要激活,若该配置为一次性类型,这执行过一次后,将状态改为close,下次定时任务执行时则不会激活该项配置。

from kubespider.

jwcesign avatar jwcesign commented on May 16, 2024

至于执行频次的用户配置可以使用flask_apscheduler,设定最小更新为1h,循环检测用户配置的rss内容,通过check_time和exec_time判断本次定时任务该rss配置是否需要激活,若该配置为一次性类型,这执行过一次后,将状态改为close,下次定时任务执行时则不会激活该项配置。

这个Kubespider原生有1h的轮转周期,应该能处理这种情况,其他我没啥意见

from kubespider.

jwcesign avatar jwcesign commented on May 16, 2024

@miRemid 大佬有时间也看看

from kubespider.

jwcesign avatar jwcesign commented on May 16, 2024

@xiaozhikang0916 嗯嗯,感觉这个点子挺好的

from kubespider.

miRemid avatar miRemid commented on May 16, 2024

@miRemid 大佬有时间也看看

我应该没那么多时间了,现在太忙了😥

from kubespider.

jwcesign avatar jwcesign commented on May 16, 2024

@ijwstl 他实现,我看他已经在搞了,哈哈,就评估一下

from kubespider.

xiaozhikang0916 avatar xiaozhikang0916 commented on May 16, 2024

我只希望不要跟指定下载源的issue冲突太多😥

from kubespider.

richardli1598 avatar richardli1598 commented on May 16, 2024

finished

from kubespider.

Related Issues (20)

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.