From c949e5e3ac049645cda1e9b067a5a97fa6277533 Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Sun, 1 Feb 2026 13:25:16 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generate_circle_data.js | 21 +- .../Ying/static/json/friend_circle_data.json | 202 +++++++++--------- 2 files changed, 110 insertions(+), 113 deletions(-) diff --git a/scripts/generate_circle_data.js b/scripts/generate_circle_data.js index 38efdadb..0c109a5f 100644 --- a/scripts/generate_circle_data.js +++ b/scripts/generate_circle_data.js @@ -9,7 +9,7 @@ const MAX_POSTS_PER_FRIEND = 5; const MAX_TOTAL_POSTS = 100; // Limit total output size const parser = new Parser({ - timeout: 10000, + timeout: 5000, headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' } @@ -21,7 +21,7 @@ async function fetchFeed(url) { return feed; } catch (error) { // console.error(`Failed to fetch ${url}: ${error.message}`); - return null; + throw error; } } @@ -72,7 +72,7 @@ async function main() { let allPosts = []; // Process friends in batches to avoid overwhelming network - const BATCH_SIZE = 5; + const BATCH_SIZE = 10; const friends = data.friends; for (let i = 0; i < friends.length; i += BATCH_SIZE) { @@ -100,15 +100,12 @@ async function main() { } let feed = null; - for (const url of candidates) { - feed = await fetchFeed(url); - if (feed) { - // console.log(`[${name}] Fetched RSS: ${url}`); - break; - } - } - - if (!feed) { + try { + // Try all candidates in parallel and take the first success + feed = await Promise.any(candidates.map(url => fetchFeed(url))); + // console.log(`[${name}] Fetched RSS successfully.`); + } catch (err) { + // All candidates failed console.log(`[${name}] No valid RSS found.`); return; } diff --git a/themes/Ying/static/json/friend_circle_data.json b/themes/Ying/static/json/friend_circle_data.json index 172b855b..0d91b0db 100644 --- a/themes/Ying/static/json/friend_circle_data.json +++ b/themes/Ying/static/json/friend_circle_data.json @@ -1,5 +1,5 @@ { - "updated": "2026-01-31T07:09:46.827Z", + "updated": "2026-02-01T05:23:08.179Z", "posts": [ { "title": "近况(6)", @@ -21,16 +21,6 @@ "image": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/LkQibZulB1ibDahZ937aU1dVk5Pib4yvH2qcYuozSLxINBXkjq2EywpgRwPta8FIL4aLoT35x4NekDTtCOyceWF4Q/640?wx_fmt=jpeg&watermark=1&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=0", "description": "用Windows系统这些年,每次装机、重装系统,我都坚信好工具能让使用体验和效率翻倍,却也踩过不少坑:下载到带捆绑广告的软件、跟风安装后发现不契合需求、碰上占内存又操作繁琐的“鸡肋工具”。久而久之,便攒下了这份自己装机时必装的软件清单,清单..." }, - { - "title": "欢迎新成员😊", - "link": "https://www.duanxiansen.com/3237.html", - "date": "2026-01-30T08:29:52.000Z", - "author": "段先森", - "avatar": "https://q.qlogo.cn/g?b=qq&nk=2443266417@qq.com&s=100", - "blogUrl": "https://duanxiansen.com", - "image": null, - "description": "他来了他来了,好可爱的一小只。" - }, { "title": "松声|廿六年·一月暮·岁灯残", "link": "https://xyzbz.cn/archives/1509/", @@ -111,16 +101,6 @@ "image": "https://ihello.cc/wp-content/uploads/2026/01/IMG_1758.jpeg", "description": "本是打算找个兼职的寒假工来弄这个寒假的,就通过朋友了解到快递收件的这项工作,虽然只干了几天 主要工作. 我是去到了极兔速递参加工作,主要负责抖音购买的快递退货,上门去取件回仓库打包入库后就可以退回商家了,起初我去面试的啥时候问有没有兼职,就..." }, - { - "title": "CWD:一个基于 Cloudflare Workers 的评论系统", - "link": "https://zishu.me/blog/cwd-cloudflare-workers.html", - "date": "2026-01-22T00:00:00.000Z", - "author": "子舒", - "avatar": "https://gravatar.zishu.me/avatar/bdad602f1f9d29ce83944c4f6225d1cc?s=200&d=retro", - "blogUrl": "https://www.zishu.me", - "image": "https://imgurl.zishu.me/2026/01/20260122153418421.webp", - "description": "文档内容写的比较全面,建议看下面的地址! 使用文档:https://cwd.js.org Github:https://github.com/anghunk/cwd 缘起:为什么我要造轮子? 作为一个博客作者,我一直苦于找不到一个真正轻量、..." - }, { "title": "智齿惊魂", "link": "https://www.zoujiang.com/1039.html", @@ -201,16 +181,6 @@ "image": null, "description": "现在不管是个人远程管理设备,还是团队日常协作运维,远程桌面工具都成了刚需。市面上的 TeamViewer 、 AnyDesk 、向日葵、 ToDesk 各有优势,可要么商用版价格不菲,要么免费版功能受限,还得依赖第三方服务器,数据安全总让人..." }, - { - "title": "怀孕", - "link": "https://www.duanxiansen.com/3236.html", - "date": "2026-01-09T09:01:47.000Z", - "author": "段先森", - "avatar": "https://q.qlogo.cn/g?b=qq&nk=2443266417@qq.com&s=100", - "blogUrl": "https://duanxiansen.com", - "image": null, - "description": "2025年很开心的一件事情就是怀孕了,但是这十个月让我感受到了怀孕的辛苦,不只是身体上带来的疼痛,更是心理上的 […]" - }, { "title": "毕设|开题报告", "link": "https://beifeng.me/archives/2502", @@ -251,16 +221,6 @@ "image": null, "description": "" }, - { - "title": "我的 AI coding 方案", - "link": "https://zishu.me/blog/my-ai-coding-setup.html", - "date": "2026-01-07T00:00:00.000Z", - "author": "子舒", - "avatar": "https://gravatar.zishu.me/avatar/bdad602f1f9d29ce83944c4f6225d1cc?s=200&d=retro", - "blogUrl": "https://www.zishu.me", - "image": "https://imgurl.zishu.me/2026/01/20260107155453607.webp", - "description": "之前高强度使用 Cursor 作为我的主力开发工具,后来随着厂商的限制,用起来也比较麻烦,就改成了 Qoder。 如果不考虑额度和价格的话,我认为 Qoder 完全可以作为 Cursor 的平替,但问题就在这里,pro 虽然价格还是可以,但..." - }, { "title": "烟花未响,结石先“炸”", "link": "https://www.zoujiang.com/1030.html", @@ -281,16 +241,6 @@ "image": "https://ihello.cc/wp-content/uploads/2026/01/IMG_1250-2000x2667.jpeg", "description": "初入大学的军训. 经历了两个星期的军训,起初感觉军训特别难熬,不过习惯以后我觉得时间过的特别快没有刚开始那种特别累的感觉,有点想念我们的教官了,军训结束的时候教官默默的上了车,那时候几乎所有人都跑去跟教官说了再见 还记得休息时间教官让我和两..." }, - { - "title": "我在苏州的小事", - "link": "https://zishu.me/blog/little-things-in-suzhou.html", - "date": "2026-01-04T00:00:00.000Z", - "author": "子舒", - "avatar": "https://gravatar.zishu.me/avatar/bdad602f1f9d29ce83944c4f6225d1cc?s=200&d=retro", - "blogUrl": "https://www.zishu.me", - "image": "https://imgurl.zishu.me/2026/01/20260104103056247.webp", - "description": "元旦小长假去苏州玩了一圈,有满意也有失望。首先是景色还是很不错的,各种园林寺庙都逛了。拙政园、平江路、山塘街、金鸡湖东方之门、西园寺、寒山寺等等,非常 city walk。 但是吃到了最近几年觉得最难吃的食物,不清楚是店面的问题还是我不太符..." - }, { "title": "2025年终回顾", "link": "https://xyzbz.cn/archives/1491/", @@ -421,16 +371,6 @@ "image": null, "description": "" }, - { - "title": "我的 2025 年度总结", - "link": "https://zishu.me/blog/2025-summary.html", - "date": "2025-12-20T00:00:00.000Z", - "author": "子舒", - "avatar": "https://gravatar.zishu.me/avatar/bdad602f1f9d29ce83944c4f6225d1cc?s=200&d=retro", - "blogUrl": "https://www.zishu.me", - "image": "https://imgurl.zishu.me/2025/12/20251220114805921.webp", - "description": "又是一年过去,思考良久,终于到了动笔的时候,基本都在年底 12 月中旬发出来。 常读我博客的朋友或许察觉,近期的更新频率有所下降,打算换个风格。 之前看过 Steph Ango 写的 《40 questions to ask yoursel..." - }, { "title": "白嫖两个腾讯云EdgeOne长期免费套餐", "link": "https://heitaosan.com/article/229", @@ -541,6 +481,16 @@ "image": null, "description": "中国禁毒寸步不让!致敬禁毒英雄!" }, + { + "title": "都市天际线2模组:香港路牌包[WE]", + "link": "https://baipin.pw/projects/cs2-hongkongsigns.html", + "date": "2025-11-27T10:20:39.000Z", + "author": "百品博客", + "avatar": "https://www.baipin.pw/wp-content/uploads/2019/07/cropped-ABUIABACGAAg_bP2wwUorbiplQQwgAU4gAU.jpg", + "blogUrl": "https://baipin.pw", + "image": "https://baipin.pw/wp-content/uploads/2025/11/Screenshots_1.jpg", + "description": "This page is also available in Englsih. 简介 本Mod是基于Write Everywhere的香港路牌包。 截图 卓越特性 搭配免费中文字体(“滙文港黑”),支持繁体中文、简体中文、日语、韩语和英文。..." + }, { "title": "ima 任务模式邀请码分享", "link": "https://dusays.com/archives/839/", @@ -561,6 +511,16 @@ "image": null, "description": "也过了伤春悲秋的季节,为什么心里总有一股气郁结于胸,呼不出咽不下。莫名其妙的就觉得很委屈,一瞬间眼泪就充斥了眼眶。为什么?说不出,也不知道。想逃离,找个无人认识的地方重新开始生活,感觉现在的一切没什么可留恋的……" }, + { + "title": "一些闲暇的感受", + "link": "https://baipin.pw/life/small-talk.html", + "date": "2025-11-25T13:44:04.000Z", + "author": "百品博客", + "avatar": "https://www.baipin.pw/wp-content/uploads/2019/07/cropped-ABUIABACGAAg_bP2wwUorbiplQQwgAU4gAU.jpg", + "blogUrl": "https://baipin.pw", + "image": null, + "description": "壹 高中伏案在课桌前,写作业的间隙,曾经想着:几年前后,熬过高中生活后的自己,在大学前,一定是无比轻松愉快、海阔天空的吧!大学时候的自己,应该可以回应高中时的自己:那个时候的你,终于经历了次次考试和高考的洗礼,迎来了无限广阔的大学生活吧! ..." + }, { "title": "可能到季节了吧", "link": "https://vian.top/703.html", @@ -591,16 +551,6 @@ "image": "https://rz.sb/usr/themes/A-Sleek/src/img/loading.svg", "description": "✨以 热 爱,致 生 活🍃💻 🚴🏼 🏕🥘 ⚽️ 🎱🔫 🎮 🎬" }, - { - "title": "如何导出 GitHub Discussions / Giscus 数据", - "link": "https://zishu.me/blog/export-gitHub-discussions-giscus-data.html", - "date": "2025-11-21T00:00:00.000Z", - "author": "子舒", - "avatar": "https://gravatar.zishu.me/avatar/bdad602f1f9d29ce83944c4f6225d1cc?s=200&d=retro", - "blogUrl": "https://www.zishu.me", - "image": "https://imgurl.zishu.me/2025/11/1763689961720.webp", - "description": "如果你的静态博客使用了 Giscus 作为评论系统,那么所有评论内容实际上都会存储在你对应仓库的 GitHub Discussions 中。 这种方式免去了自建数据库和后端的麻烦,但很多人会关心一个问题:能否把评论备份导出? 答案是:可以!..." - }, { "title": "Temp Mail 兼具隐私和便捷性的最佳临时电子邮件服务", "link": "https://dusays.com/archives/838/", @@ -651,16 +601,6 @@ "image": "https://rz.sb/usr/themes/A-Sleek/src/img/loading.svg", "description": "前两天收到rzsb的快到期通知,今天想起来给续一下然后脑子一热顺带新买了个米,因为现在基本上都在用\"苏哥拉弟(sugerady)\"这个id在网络冲浪想着也给这个id也注册个米,英文名又有点长,不便于记忆,还没有dy这个后缀,联想了几个谐音,..." }, - { - "title": "适应期", - "link": "https://www.duanxiansen.com/3221.html", - "date": "2025-11-02T13:52:22.000Z", - "author": "段先森", - "avatar": "https://q.qlogo.cn/g?b=qq&nk=2443266417@qq.com&s=100", - "blogUrl": "https://duanxiansen.com", - "image": null, - "description": "前几天,听爸爸说哥哥在他跟前念叨没有钱买东西,我问爸爸给了没有,我爸说给了。从装修房子到现在已经拿去两三万了。 […]" - }, { "title": "老婆被家长投诉", "link": "https://digu.plus/post/c6f824c866a6456697917919c5c373e5/", @@ -681,16 +621,6 @@ "image": "https://img.alicdn.com/imgextra/i3/2206681143602/O1CN01uyzX0D1cTljITl2Dy_!!2206681143602.jpg", "description": "天气冷了,买个电热毯暖暖床吧。" }, - { - "title": "关于车险理性的拒绝", - "link": "https://www.duanxiansen.com/3176.html", - "date": "2025-10-22T00:43:17.000Z", - "author": "段先森", - "avatar": "https://q.qlogo.cn/g?b=qq&nk=2443266417@qq.com&s=100", - "blogUrl": "https://duanxiansen.com", - "image": null, - "description": "又到了一年一度的的续保环节了,与往年不同的是,今年出现了两条并行的催促线。 一条是一直在用的、当初不知道怎么用 […]" - }, { "title": "无服务器部署定时脚本推送", "link": "https://dai.ge/25.html", @@ -711,16 +641,6 @@ "image": "https://s.lms.pub/wp-content/uploads/2025/10/casaos.png", "description": "上回给在咸鱼捡垃圾入手的网心云刷了个机后,陆陆续续的折腾着,现在分享一下结果。 换了个 1TB 的硬盘 手上有旧笔记本留下的 500G 机械硬盘和一个 120G 的固态硬盘,可惜机械硬盘厚度 9mm 虽然硬塞能塞进去但机器盖子盖不了,120..." }, - { - "title": "争吵到和好,我们的第七年", - "link": "https://www.duanxiansen.com/3076.html", - "date": "2025-10-16T14:29:59.000Z", - "author": "段先森", - "avatar": "https://q.qlogo.cn/g?b=qq&nk=2443266417@qq.com&s=100", - "blogUrl": "https://duanxiansen.com", - "image": null, - "description": "十月国庆节之后,又要去省上产检,预约的是10月13号的专家号,10月11号下午段先森上来,打开门就给我说他把钥 […]" - }, { "title": "十月杂记-最近我在干啥", "link": "https://t-t.live/archives/2m6TBsvh", @@ -1000,6 +920,86 @@ "blogUrl": "https://blog.fivk.cn", "image": null, "description": "随着大模型(LLM)和向量检索(RAG、Embedding)应用兴起,向量数据库变得越来越重要。其中,PostgreSQL + pgvector 成为非常流行的一种组合方案,既能保留关系数据库的强大特性,又能高效地进行向量检索。本篇文章将手..." + }, + { + "title": "这一波亏了", + "link": "https://www.likaijian.com/archives/zhe-yi-bo-yu-liao", + "date": "2025-06-22T00:29:00.000Z", + "author": "永恒末匕", + "avatar": "https://q.qlogo.cn/headimg_dl?dst_uin=1527335101&spec=640", + "blogUrl": "https://likaijian.com", + "image": "https://www.likaijian.com/plugins/feed/assets/telemetry.gif?title=%E8%BF%99%E4%B8%80%E6%B3%A2%E4%BA%8F%E4%BA%86&url=/archives/zhe-yi-bo-yu-liao", + "description": "这下又被资本做局了,最近网上很火的手机流量卡,被这种东西冲昏了头脑,蠢蠢欲动的我,然后就恍恍惚惚的入手了一张19/240G联通流量卡,果不其然,收到货后进行了测速,公司那地方也是4G和5G来回跳,稍微卡顿,没有现在用的广电和移动的信号稳定,..." + }, + { + "title": "毕业后我都在干什么", + "link": "https://ihello.cc/archives/215.html", + "date": "2025-06-17T03:58:00.000Z", + "author": "小稚生活志", + "avatar": "https://bu.dusays.com/2024/02/02/65bbce27b129a.jpg", + "blogUrl": "https://ihello.cc", + "image": "https://ihello.cc/wp-content/uploads/2025/10/1000094845.webp", + "description": "现在离高考结束已经过去一个星期了,想想时间过的也是挺快的,高考前一个星期的时候我就跑去烫头发了,烫了个摩根烫挺成功,高考一结束不用想肯定要先去玩个痛快,我和朋友四个人一起跑去网吧通宵了 组队打无畏契约 刚毕业这几天基本上都在网吧打游戏,一共..." + }, + { + "title": "最近一段时间", + "link": "https://blog.qydzz.cn/archives/1257.html", + "date": "2025-06-15T14:28:00.000Z", + "author": "七栀", + "avatar": "https://qydzz.cn/logo.png", + "blogUrl": "https://blog.qydzz.cn", + "image": "https://qydzz.cn/usr/uploads/2025/06/3759157851.jpg", + "description": "从年后到苏州以来,好久没更新博客了。一晃,一年都要过半了,稍稍记录存档一下。高速事故后续车在高速被追尾后,对方车主报了保险,保险全责赔付了我的修车费,共赔付13800元。修车修了2个月,有点久(4s店售后说我车型太老了,已经停产,配件不好找..." + }, + { + "title": "高考倒计时:6天", + "link": "https://ihello.cc/archives/212.html", + "date": "2025-06-01T03:52:00.000Z", + "author": "小稚生活志", + "avatar": "https://bu.dusays.com/2024/02/02/65bbce27b129a.jpg", + "blogUrl": "https://ihello.cc", + "image": null, + "description": "" + }, + { + "title": "Lucky-canvas 抽奖插件折腾记", + "link": "https://immmmm.com/lucky-everday/", + "date": "2025-05-31T12:02:58.000Z", + "author": "林木木", + "avatar": "https://weavatar.com/avatar/321331f2353f7eb24979e82f9e7fb5b39fef9ea85bd7a362142ce3188c1bb069", + "blogUrl": "https://immmmm.com", + "image": null, + "description": "基于 「Lucky-canvas」 抽奖插件,借助 字节跳动 trae 做了个大转盘,全屏显示、替换背景、概率设置、一键导入、边框修改等能想到的和需要的功能都已实现,效果远超预期。 体验地址:https://immmmm.com/dzp/ ..." + }, + { + "title": "Word一定要用自带样式!✋😭✋", + "link": "https://aloner.ink/Share/990.html", + "date": "2025-05-27T09:59:00.000Z", + "author": "如约而至", + "avatar": "https://cravatar.cn/avatar/af1874b7856255302fc3df5102a6ce6d", + "blogUrl": "https://aloner.ink", + "image": "https://cdn.aloner.ink/usr/uploads/2025/05/1685614581.png", + "description": "省流:当需要在Word中自定义样式时,对需应用于多层级标题的,建议直接在自带的“标题1”、“标题2”……基础上改动使用,可免去许多不必要的麻烦。 1事出有因最近在参悟研究学校的毕业论文排版规范。在图注方面,规定要求的是章号+圆点+图序(如“..." + }, + { + "title": "喝了四天啤酒,居然还发现了人生的意义!", + "link": "https://www.jdeal.cn/538.html", + "date": "2025-05-15T05:00:00.000Z", + "author": "Jdeal", + "avatar": "https://cn.cravatar.com/avatar/e52005490b64d0da9e98a89b295d5a0d", + "blogUrl": "https://www.jdeal.cn/", + "image": null, + "description": "真的很久没写东西了,工作忙得我晕头转向,每天都在各种打转。不过五一假期来啦,我终于能喘口气,和朋友们、发小们聚在一起,连续喝了四天,太爽啦!说到啤酒,我觉得白啤和精酿啤酒都还不错,比那些普通的工业啤酒有意思多了,每一口都超有惊喜。我最近特别..." + }, + { + "title": "【知识总结】Maven国内镜像", + "link": "https://blog.fivk.cn/archives/6621.html", + "date": "2025-05-11T06:52:33.000Z", + "author": "Fivk博客", + "avatar": "https://q1.qlogo.cn/g?b=qq&nk=11470226&s=640", + "blogUrl": "https://blog.fivk.cn", + "image": null, + "description": "阿里云:http://maven.aliyun.com/中央仓库:https://repo1.maven.org/maven2/网易:http://maven.netease.com/repository/public/华为云:https:..." } ] } \ No newline at end of file