Update zhihu.py
This commit is contained in:
parent
d77701fb45
commit
c2148b3302
@ -51,11 +51,11 @@ for href in match_href_new:
|
||||
f.write(str(href)) # 文章链接
|
||||
f.write('\">')
|
||||
f.write(str(title.get_text()[:-5]))
|
||||
f.write(' ')
|
||||
f.write('</a> ')
|
||||
author = soup.find("span", {"class": "UserLink AuthorInfo-name"})
|
||||
f.write(str(author.get_text()+' '))
|
||||
post_time = soup.find("div", {"class" : "ContentItem-time"})
|
||||
f.write(str(post_time.get_text()[4:-6])+'</a></p>')
|
||||
f.write(str(post_time.get_text()[4:-6])+'</p>')
|
||||
except:
|
||||
pass
|
||||
f.close()
|
Loading…
x
Reference in New Issue
Block a user