{"id":13841675,"url":"https://github.com/lqzhgood/Rss2Weibo","last_synced_at":"2025-07-11T13:32:09.444Z","repository":{"id":116139109,"uuid":"113750843","full_name":"lqzhgood/Rss2Weibo","owner":"lqzhgood","description":"将 rss 流同步到 微博. 如 twitter facebook 等","archived":false,"fork":false,"pushed_at":"2023-03-17T15:29:45.000Z","size":21,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-05T17:28:56.865Z","etag":null,"topics":["facebook","rss","sync","twitter","weibo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lqzhgood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-12-10T13:09:57.000Z","updated_at":"2024-07-11T05:29:00.000Z","dependencies_parsed_at":"2024-04-12T16:00:58.699Z","dependency_job_id":"7ea5368e-81d2-4795-8691-2ed2453f8d84","html_url":"https://github.com/lqzhgood/Rss2Weibo","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/lqzhgood%2FRss2Weibo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lqzhgood%2FRss2Weibo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lqzhgood%2FRss2Weibo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lqzhgood%2FRss2Weibo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lqzhgood","download_url":"https://codeload.github.com/lqzhgood/Rss2Weibo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225729629,"owners_count":17515147,"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":["facebook","rss","sync","twitter","weibo"],"created_at":"2024-08-04T17:01:18.107Z","updated_at":"2024-11-21T12:30:18.919Z","avatar_url":"https://github.com/lqzhgood.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","JavaScript (485)"],"sub_categories":[],"readme":"# Rss2Weibo\n将 rss 流同步到 微博. 如twitter facebook 等 RSS 流同步到微博 \u003cbr/\u003e\n[Twitter to Rss](https://github.com/snarfed/twitter-atom)\u003cbr/\u003e\n[Facebook to Rss](https://github.com/snarfed/facebook-atom)\n## 安装 Installation\n\n```bash\ngit clone https://github.com/lqzhgood/Rss2Weibo.git\nnpm install\n```\n\n## Usage\n1. 先去[微博开放平台](http://open.weibo.com/index.php) 申请一个应用【无需审核】,然后在[Api测试中](http://open.weibo.com/tools/console)获取开发者Access Token\n2. [微博开放平台](http://open.weibo.com/index.php) 【应用信息】 添加 【安全域名】\n3. 打开目录下的 *config.js* 填入配置\n4. node *app.js* 执行\n\n\n\n\n\n\n### config.js\nconfig  多个配置组成的数组\n\n| key    | type   | explain \n|--------|-----  | -------\n|NAME    |String | 配置的名称，仅用于标识及日志\n|WB_AT   |String | Usage \\*1 获取的 微博Access_Token\n|TW_TAG  |Array  | 触发同步的关键词，若数组为空则同步所有到微博，允许多个关键词\n|TW_RSS_URL|String | 监控的 RSS 地址\n|DOMAIN  |String | Usage \\*2 填写的【安全域名】 每条微博后会追加这个域名地址，需要 *http/https* 开头。若为空，则追加 RSS 条目地址\n\n#### config.js Examples\n``` javascript\n[{\n\tNAME: 'test1',\n\tWB_AT: \"******************************\",\n\tTW_TAG: [],  // 将同步所有条目到微博\n\tTW_RSS_URL: \"https://rss.rss\",\n\tDOMAIN: '', // 追加条目的链接到同步的微博\n}，{\n\tNAME: 'test2',\n\tWB_AT: \"******************************\",\n\tTW_TAG: [\"#weibo\"], // 仅同步包含 “#weibo” 关键词的条目到微博\n\tTW_RSS_URL: \"https://rss.rss\",\n\tDOMAIN: 'http://www.baidu.com', // 追加 百度首页的链接 到同步的微博条目中\n}]\n\n// DOMAIN 需和【微博开发者平台】-\u003e【我的应用】-\u003e【应用信息】-\u003e【安全域名】中匹配\n```\n\n## Important\n- 由于微博限制，每条微博不得含有话题，原RSS的内容中所有 #号 会被替换为 [♯升号](https://baike.baidu.com/item/%E5%8D%87%E5%8F%B7/4824245)。\n- 又是由于微博的限制，每条微博必须包含域名，且域名必须在【应用信息】的【安全域名】中。\n\n``` bash\n 例如如果的Rss是twitter某人的时间线，并且想让你同步后的微博附带跳转到twitter相应推文的链接，那么【应用信息】中的 【安全域名】 就填 twitter.com，config[DOMAIN]留空\n\n 如果你的Rss的条目链接指向多个域名且无法控制，那么请用自己的域名建短链，然后【安全域名】填自己的短链域名， config[DOMAIN]留空\n\n 如果你完全不明白我上面写的什么，【应用信息】中的 【安全域名】 填 www.baidu.com，config[DOMAIN]填http://www.baidu.com\n\n```\n- rss轮询时间为上一次循环完成的1分钟后\n- 每条微博的发送间隔时间 3s ，防止发送过快被微博ban\n- 为了保证时间线的正确性，从最老的不重复项开始发，如果中途出现错误，没有发送成功，则后续不会发送，到下一个循环重试。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flqzhgood%2FRss2Weibo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flqzhgood%2FRss2Weibo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flqzhgood%2FRss2Weibo/lists"}