Skip to content

Commit

Permalink
3.1 对typecho类型博客的atom爬取
Browse files Browse the repository at this point in the history
  • Loading branch information
noionion committed Sep 14, 2021
1 parent 0fc8b79 commit 36f06dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/coreLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def atom_get(user_info, post_poor, config=config.yml):
soup = BeautifulSoup(html, 'html.parser')
items = soup.find_all("entry")
if len(items) == 0:
html = request.get_data(link + "/feed/atom.xml")
html = request.get_data(link + "/feed/atom")
soup = BeautifulSoup(html, 'html.parser')
items = soup.find_all("entry")
l = 5
Expand Down

0 comments on commit 36f06dd

Please sign in to comment.