Reverting reversal, doesn't work

This commit is contained in:
Liam Steckler 2024-01-14 14:48:09 -08:00
parent 46818f830c
commit 9cbb416868

View file

@ -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