Update zhihu.py
This commit is contained in:
parent
f4f6d85061
commit
fb32c462ea
@ -14,7 +14,7 @@ day = datetime.datetime.now().day
|
|||||||
|
|
||||||
# 获取链接
|
# 获取链接
|
||||||
match_href = []
|
match_href = []
|
||||||
# 由于没有模拟登录知乎,因此只能爬取到最新的两篇专栏博文
|
# 由于没有模拟登录知乎,因此只能爬取到最新的两篇文章
|
||||||
authors = ["https://www.zhihu.com/people/g3508/posts", # Guan
|
authors = ["https://www.zhihu.com/people/g3508/posts", # Guan
|
||||||
]
|
]
|
||||||
for i0 in range(len(authors)):
|
for i0 in range(len(authors)):
|
||||||
@ -58,4 +58,4 @@ for href in match_href_new:
|
|||||||
f.write(str(post_time.get_text())+'</p>')
|
f.write(str(post_time.get_text())+'</p>')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
f.close()
|
f.close()
|
Loading…
x
Reference in New Issue
Block a user