From fb32c462ea9374f451d76db90eadf4b9db5d26fc Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Tue, 12 Apr 2022 20:48:05 +0800 Subject: [PATCH] Update zhihu.py --- language_learning/2021.11.17_zhihu/zhihu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language_learning/2021.11.17_zhihu/zhihu.py b/language_learning/2021.11.17_zhihu/zhihu.py index de74348..9699a1c 100644 --- a/language_learning/2021.11.17_zhihu/zhihu.py +++ b/language_learning/2021.11.17_zhihu/zhihu.py @@ -14,7 +14,7 @@ day = datetime.datetime.now().day # 获取链接 match_href = [] -# 由于没有模拟登录知乎,因此只能爬取到最新的两篇专栏博文 +# 由于没有模拟登录知乎,因此只能爬取到最新的两篇文章 authors = ["https://www.zhihu.com/people/g3508/posts", # Guan ] for i0 in range(len(authors)): @@ -58,4 +58,4 @@ for href in match_href_new: f.write(str(post_time.get_text())+'

') except: pass -f.close() +f.close() \ No newline at end of file