Update zhihu.py

This commit is contained in:
guanjihuan 2022-04-12 20:48:05 +08:00
parent f4f6d85061
commit fb32c462ea

View File

@ -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())+'</p>')
except:
pass
f.close()
f.close()