Giter Site home page Giter Site logo

rss-aggregator's Introduction

rss-aggregator

RSS聚合器,将多个rss源(本地或url)聚合在同一个rss中,自动按时间顺序排序并生成三种格式rss,支持github actions自动运行

运行效果

Screenshot_20231111_140617_com termux

使用

本地使用

在本地使用前,你需要先clone此存储库到本地安装相关依赖

git clone https://github.com/RavelloH/rss-aggregator
cd rss-aggregator

npm install

在Github Actions中使用

本项目内置一个每日更新一次的workflows进程,你可以在.github/workflows/main.yml修改它。

你可以fork本仓库,并在仓库设置中启用Workflow

然后,参照下面的 #配置 章节自定义你的程序,之后stars你的仓库,它会自动开始构建

配置

你可以在index.js中配置相关生成设置。具体可修改的项目如下:

const rssList = [
    'atom.xml', // Do not delate this. This could keep your history rss.
    // Edit the list below 
    'https://ravelloh.top/feed/atom.xml',
    'https://www.ithome.com/rss/',
    'https://sspai.com/feed'
];

const storagePath = './';
const authorINFO = {
    name: 'RavelloH',
    email: '[email protected]',
    link: 'https://ravelloh.top/',
};

const feed = new Feed({
    title: "RSS聚合器 - RSS aggregator",
    description: '聚合多种rss源',
    id: 'http://ravelloh.top/',
    link: 'http://ravelloh.top/',
    language: 'zh',
    image: 'https://ravelloh.top/assets/images/avatar.jpg',
    favicon: 'https://ravelloh.top/favicon.ico',
    copyright: `Copyright © 2019 - ${new Date().getFullYear()} RavelloH. All rights reserved.`,
    generator: 'https://github.com/RavelloH/rss-aggregator',
    feedLinks: {
        json: 'https://ravelloh.github.io/rss-aggregator/feed.json',
        atom: 'https://ravelloh.github.io/rss-aggregator/atom.xml',
        rss: 'https://ravelloh.github.io/rss-aggregator/rss.xml',
    },
    author: authorINFO,
});

其中,rssList是你的原始RSS源,你可以自由添加。
storageLath是生成的三个整合后的RSS的存储路径,一般无需修改。若修改后,请在rssList中相应修改atom.xml的位置。
authorINFOfeed都是生成后的RSS的信息设置,你可以根据自己的情况填写。

运行

node index.js

这将会生成三个rss文件,分别为rss.xml atom.xmlfeed.json

rss-aggregator's People

Contributors

ravelloh avatar

Stargazers

Ravello-H avatar  avatar

Watchers

 avatar  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.