From 9cbb416868f3628a109b8f06c1bfcca9fb23bb70 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Sun, 14 Jan 2024 14:48:09 -0800 Subject: [PATCH] Reverting reversal, doesn't work --- kuow_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuow_fetcher.py b/kuow_fetcher.py index 25618ec..05a558b 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").reverse(): +for article in soup.find_all("span", class_ = "txt"): article_link = article.find("a").attrs["href"] is_new_article = True