From 46818f830ca4fdca7c78c39fb30a4a8b17067e37 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Sun, 14 Jan 2024 14:48:09 -0800 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