Skip to content

Commit

Permalink
Update article link selection in fetch_and_parse_articles function
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Mar 14, 2024
1 parent 5fc59a9 commit 7705b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def fetch_and_parse_articles():
summary = article.select_one('div.post__content > p').text.strip() if article.select_one('div.post__content > p') else ''
date = article.find('time').text.strip() if article.find('time') else ''

article_link = article.select_one('a.post__img')
link = article_link['href'] if article_link else ''
article_link = article.select_one('a.post__more')
link = 'https://blog.min.io' + article_link['href'] if article_link else ''

articles.append((title, author, summary, date, link))

Expand Down

0 comments on commit 7705b1f

Please sign in to comment.