{"id":21319121,"url":"https://github.com/kongnet/daily-rss","last_synced_at":"2026-02-23T23:32:51.921Z","repository":{"id":77322981,"uuid":"589471663","full_name":"kongnet/daily-rss","owner":"kongnet","description":"rss develop","archived":false,"fork":false,"pushed_at":"2025-01-17T08:41:22.000Z","size":2235,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:51:32.938Z","etag":null,"topics":["blog","nodejs","rss","today"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kongnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-16T07:44:47.000Z","updated_at":"2025-01-17T08:41:24.000Z","dependencies_parsed_at":"2025-01-17T09:18:41.865Z","dependency_job_id":"c2fe6122-8757-4c0d-b998-926937560124","html_url":"https://github.com/kongnet/daily-rss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fdaily-rss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fdaily-rss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fdaily-rss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongnet%2Fdaily-rss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kongnet","download_url":"https://codeload.github.com/kongnet/daily-rss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968702,"owners_count":21191157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","nodejs","rss","today"],"created_at":"2024-11-21T19:34:44.033Z","updated_at":"2026-02-23T23:32:46.873Z","avatar_url":"https://github.com/kongnet.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily-RSS\n\n### Introduction 简介\n\n\u003e 简易每日聚合 RSS 生成页面框架  \n\u003e Simple Daily Aggregation RSS Generated Page Framework  \n\u003e 跨服务器支持,全静态页面  \n\u003e Cross-server support, fully static pages\n\n### Read Online 现在阅读\n\nhttps://news.nftmeta.vip/#/\n\n### Version Dependency 版本依赖\n\nnodejs version: \u003e=18.x.x\n \n### Install 安装\n\n```\nnpm install daily-rss\n```\n\n### Example 用例\n\n```\nconst rss = require('daily-rss')\n\n//modify config\nconst config = {\n    'people' : 'http://www.people.com.cn/rss/politics.xml'\n}\n\n//modify adaptor, return the array of objects (title,link,description)\nconst adaptor = {\n    'people': async res =\u003e {\n        const rst = rss.convert.xml2json(await res.text(), {\n            compact: true,\n            spaces: 0\n        })\n        const items = JSON.parse(rst).rss.channel.item\n        return items.map(x =\u003e {\n            return { title: x.title._cdata, link: x.link._text, desc: x.description._cdata }\n        })\n    }\n}\n\nasync function main() {\n    rss.setConfig(config,adaptor)\n    const data = await rss.rss2json()\n    rss.rss2md(data)\n}\n```\n\n### Step 实现步骤\n\n- 1. set rss url and adaptor 配置rss源和对应的解析函数\n- 2. parse RSS data 解析 RSS 数据\n- 3. render 渲染(html md)\n- 4. crontab 设置定时任务\n- 5. website 配置网站显示前端数据\n  - a. Nginx setting 配置 Nginx\n  - b. Https setting 配置 Https\n  - c. or Docker\n\n[Get code](https://github.com/kongnet/daily-rss)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongnet%2Fdaily-rss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkongnet%2Fdaily-rss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongnet%2Fdaily-rss/lists"}