ignore giveaways already entered into by default
This commit is contained in:
parent
2f35c9e60e
commit
38ba622464
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ class SteamGifts:
|
||||||
|
|
||||||
soup = self.get_soup_from_page(paginated_url)
|
soup = self.get_soup_from_page(paginated_url)
|
||||||
|
|
||||||
game_list = soup.find_all('div', {'class': 'giveaway__row-inner-wrap'})
|
# this matches on a div with the exact class value so we discard ones that also have a class 'is-faded' containing already entered giveaways
|
||||||
|
game_list = soup.select('div[class=giveaway__row-inner-wrap]')
|
||||||
|
# game_list = soup.find_all('div', {'class': 'giveaway__row-inner-wrap'})
|
||||||
|
|
||||||
if not len(game_list):
|
if not len(game_list):
|
||||||
random_seconds = randint(900, 1400)
|
random_seconds = randint(900, 1400)
|
||||||
|
|
Loading…
Reference in a new issue