Update zhihu.py

This commit is contained in:
guanjihuan 2021-11-17 13:42:03 +08:00
parent 86e32b14a2
commit fc0bad88fc

View File

@ -27,6 +27,7 @@ for i0 in range(len(authors)):
if re.search('//zhuanlan.zhihu.com/p/', href): # 文章的链接
if re.search('https:', href)==None: # 如果链接不是完整的,那么补充完整
href = 'https:'+ href
if href not in match_href:
match_href.append(href)
# 对链接进行排序并写入文件
numbers = []