From d8886216c6748cc53a2c5d45c4a4d97285b12197 Mon Sep 17 00:00:00 2001 From: zeek <984294471@qq.com> Date: Tue, 21 Apr 2020 10:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B9=B1=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen_rss.py | 3 +-- rss.xml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gen_rss.py b/gen_rss.py index f3aa91c..a72f4de 100755 --- a/gen_rss.py +++ b/gen_rss.py @@ -40,7 +40,7 @@ def gen_rss(items): lastBuildDate=datetime.datetime.now(), items=items_rss ) - rss.write_xml(open(file_path, 'w')) + rss.write_xml(open(file_path, 'w', encoding='utf-8'), encoding='utf-8') def get_items(): @@ -80,5 +80,4 @@ if __name__ == "__main__": # main print('begin') items = get_items() - print(items) gen_rss(items) diff --git a/rss.xml b/rss.xml index eb4f261..d59032d 100644 --- a/rss.xml +++ b/rss.xml @@ -1,3 +1,3 @@ - -private code feedhttps://git.zeekling.cn/private code feedTue, 21 Apr 2020 10:41:32 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-rssMon, 20 Apr 2020 13:15:50 GMTpython/sitemaphttps://git.zeekling.cn/python/sitemap通过爬取网站,生成sitemap.xml + +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