From 73aae6ef1489623a977675ef0a2abd02f64fd850 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Thu, 13 Apr 2023 11:26:11 -0700 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