This commit is contained in:
tauqua 2020-11-01 19:17:54 -06:00 committed by GitHub
commit e429fcbd65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,13 @@ def extract_from_itch_group(group_page):
soup = BeautifulSoup(group_page, 'lxml')
ended = soup.find_all('div', class_ = 'not_active_notification')
urls, more = set(), set()
others = soup.find_all('div', class_='sale_row')
for sale in others:
rate=sale.find('div', class_='rate').getText()
if rate == "100%":
link = sale.find('a', class_='sale_overlay_link').get('href')
more.add("https://itch.io"+link)
print("Found extra sale:", link)
if ended:
print(" Sale ended")
return urls, more