Skip to content

Commit

Permalink
Update data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadeb-git authored May 18, 2024
1 parent 0d958c5 commit 08d0c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def fetch_latest_articles():
articles = root.findall(".//{http://www.sitemaps.org/schemas/sitemap/0.9}url")

latest_articles_data = []
for article in articles[:20]:
for article in articles[:25]:
loc = article.find("{http://www.sitemaps.org/schemas/sitemap/0.9}loc").text
response = requests.get(loc)
if response.status_code != 200:
Expand Down

0 comments on commit 08d0c5a

Please sign in to comment.