Reverse order of article processing
This commit is contained in:
parent
cc2d7d54c2
commit
baeb1e85ff
1 changed files with 1 additions and 1 deletions
|
@ -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"):
|
for article in soup.find_all("span", class_ = "txt").reverse():
|
||||||
article_link = article.find("a").attrs["href"]
|
article_link = article.find("a").attrs["href"]
|
||||||
|
|
||||||
is_new_article = True
|
is_new_article = True
|
||||||
|
|
Loading…
Reference in a new issue