Reverting reversal, doesn't work

This commit is contained in:
Liam Steckler 2023-04-13 11:26:11 -07:00
parent baeb1e85ff
commit 73aae6ef14

View file

@ -8,7 +8,7 @@ mastodon = Mastodon(access_token = 'kuow_bot_mastodon.secret')
r = requests.get(url) r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser') 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"] article_link = article.find("a").attrs["href"]
is_new_article = True is_new_article = True