From baeb1e85ffed0c5e67f50bbf903952479083c56a Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Thu, 13 Apr 2023 11:22:50 -0700 Subject: [PATCH] Reverse order of article processing --- kuow_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuow_fetcher.py b/kuow_fetcher.py index 05a558b..25618ec 100644 --- a/kuow_fetcher.py +++ b/kuow_fetcher.py @@ -8,7 +8,7 @@ mastodon = Mastodon(access_token = 'kuow_bot_mastodon.secret') r = requests.get(url) soup = BeautifulSoup(r.content, 'html.parser') -for article in soup.find_all("span", class_ = "txt"): +for article in soup.find_all("span", class_ = "txt").reverse(): article_link = article.find("a").attrs["href"] is_new_article = True