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