Skip to content

Commit

Permalink
Merge ; commit '499032a19b8fefa77f357e7f581d47fcf97805e6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Mar 21, 2024
2 parents 7f79836 + 499032a commit 0fd2724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def fetch_and_parse_articles():
title = article.find('h2').text.strip() if article.find('h2') else 'No Title Available'
summary = article.select_one('.post__content').text.strip() if article.select_one('.post__content') else 'Summary not available'
date = article.find('time')['datetime'].strip() if article.find('time') else 'Date not available'
link = article.select_one('a[href]')['href'] if article.select_one('a[href') else 'URL not available'
link = article.select_one('a[href]')['href'] if article.select_one('a[href]') else 'URL not available'
articles.append({"title": title, "author": AUTHOR, "summary": summary, "date": date, "url": link})

df = pd.DataFrame(articles)
Expand Down

0 comments on commit 0fd2724

Please sign in to comment.