From 5d5ad8cfc27c75bace8e7c26d3223a33b59a95d2 Mon Sep 17 00:00:00 2001 From: zeekling Date: Sun, 14 Feb 2021 11:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7rss.xml?= =?UTF-8?q?=E7=9A=84=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen_rss.py | 12 ++++++++---- rss.xml | 3 +-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gen_rss.py b/gen_rss.py index fde6970..09753e5 100755 --- a/gen_rss.py +++ b/gen_rss.py @@ -11,9 +11,11 @@ file_path = "./rss.xml" code_url = "https://git.zeekling.cn/" +des = "Stay simple, stay naive." + resp_url = code_url + "api/v1/repos/search" -update_days = 15 +update_days = 30 params = { 'sort': 'updated', @@ -34,9 +36,9 @@ def gen_rss(items): ) items_rss.append(rss_item) rss = PyRSS2Gen.RSS2( - title="private code feed", + title=des, link=code_url, - description="private code feed", + description=des, lastBuildDate=datetime.datetime.now(), items=items_rss ) @@ -62,6 +64,7 @@ def get_items(): if now_time >= end_date: continue use_able_count += 1 + print("title=", resp['name']) entity = { 'name': resp['name'], 'url': resp['html_url'], @@ -78,6 +81,7 @@ def get_items(): if __name__ == "__main__": # main - print('begin') + print('begin--------------------') items = get_items() gen_rss(items) + print('end----------------------') diff --git a/rss.xml b/rss.xml index d59032d..b73bfed 100644 --- a/rss.xml +++ b/rss.xml @@ -1,3 +1,2 @@ -private code feedhttps://git.zeekling.cn/private code feedTue, 21 Apr 2020 10:51:03 GMTPyRSS2Gen-1.1.0http://blogs.law.harvard.edu/tech/rsspython/gitea-rsshttps://git.zeekling.cn/python/gitea-rss生成rss总的rss的代码。https://git.zeekling.cn/python/gitea-rssTue, 21 Apr 2020 02:45:13 GMTpython/sitemaphttps://git.zeekling.cn/python/sitemap通过爬取网站,生成sitemap.xml -https://git.zeekling.cn/python/sitemapMon, 20 Apr 2020 12:14:24 GMTmirror/ggfwzs_in_hackhttps://git.zeekling.cn/mirror/ggfwzs_in_hackhttps://git.zeekling.cn/mirror/ggfwzs_in_hackMon, 20 Apr 2020 09:26:29 GMTzeekling/configshttps://git.zeekling.cn/zeekling/configs个人配置相关信息https://git.zeekling.cn/zeekling/configsSun, 19 Apr 2020 10:58:39 GMTzeekling/indexhttps://git.zeekling.cn/zeekling/index以前首页代码https://git.zeekling.cn/zeekling/indexSat, 18 Apr 2020 04:43:11 GMTjava/mybatishttps://git.zeekling.cn/java/mybatis根据自己对mybatis的理解封装一个简易版的mybatishttps://git.zeekling.cn/java/mybatisSat, 18 Apr 2020 04:42:51 GMTjava/thinkerhttps://git.zeekling.cn/java/thinker毕业设计时候用到的博客系统https://git.zeekling.cn/java/thinkerSat, 18 Apr 2020 04:42:32 GMTpython/photohttps://git.zeekling.cn/python/photo简单相册,不过已经不会使用这个相册了,使用开源框架搭建了自己的图床,就不需要这个项目了。https://git.zeekling.cn/python/photoSat, 18 Apr 2020 04:41:34 GMTjava/algorithmhttps://git.zeekling.cn/java/algorithm学习算法导论https://git.zeekling.cn/java/algorithmFri, 17 Apr 2020 16:19:30 GMT \ No newline at end of file +Stay simple, stay naive.https://git.zeekling.cn/Stay simple, stay naive.Sun, 14 Feb 2021 11:43:00 GMTPyRSS2Gen-1.1.0http://blogs.law.harvard.edu/tech/rsslinux/vimrchttps://git.zeekling.cn/linux/vimrcvimrc 相关配置https://git.zeekling.cn/linux/vimrcSat, 13 Feb 2021 13:31:06 GMTlinux/scripthttps://git.zeekling.cn/linux/scriptlinux 相关的脚本.https://git.zeekling.cn/linux/scriptSat, 13 Feb 2021 08:56:17 GMTzeekling/configshttps://git.zeekling.cn/zeekling/configs个人配置相关信息https://git.zeekling.cn/zeekling/configsThu, 11 Feb 2021 06:33:29 GMTjava/leetCodehttps://git.zeekling.cn/java/leetCodeleetCode刷题https://git.zeekling.cn/java/leetCodeSat, 06 Feb 2021 14:48:09 GMTzeekling/bolo-fantastichttps://git.zeekling.cn/zeekling/bolo-fantastic此项目是本人对bolo-fantastic进行了一些改造,包括样式和seo两方面。https://git.zeekling.cn/zeekling/bolo-fantasticFri, 22 Jan 2021 14:59:32 GMTzeekling/test_chttps://git.zeekling.cn/zeekling/test_cc 语言学习项目。https://git.zeekling.cn/zeekling/test_cSun, 17 Jan 2021 12:53:12 GMTzeekling/hiredishttps://git.zeekling.cn/zeekling/hiredishttps://git.zeekling.cn/zeekling/hiredisSun, 17 Jan 2021 10:53:58 GMT \ No newline at end of file