mirror of
https://github.com/Iron-Row/claim_itch.git
synced 2026-03-11 08:54:39 +00:00
Merge a03775c25b into 5e3f03202e
This commit is contained in:
commit
e429fcbd65
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue