This commit is contained in:
2022-10-27 16:57:22 +08:00
parent 6325f03ed9
commit 49e3efd12c
5 changed files with 11 additions and 11 deletions

View File

@@ -26,11 +26,11 @@ for article in all_articles:
href = 'https://physics.aps.org'+ href
if href not in match_href:
match_href.append(href)
f.write('<p><a target=\"_blank\" href=\"')
f.write('<li><a target=\"_blank\" href=\"')
f.write(href) # 文章链接
f.write('\">')
f.write(a_tag.get_text())
f.write('</a>&nbsp;&nbsp;')
time = article.find('time', {"class": "feed-item-date"}).get_text()
f.write(time+'</p>')
f.write(time+'</li>')
f.close()