From ed72620d33d24c91f37497ffb3d2291eb8ffda40 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 1 Nov 2023 23:50:11 +0100 Subject: [PATCH] Changed steam sale offer checker --- bot/src/modules/special_offers/steam_offer_watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/modules/special_offers/steam_offer_watcher.py b/bot/src/modules/special_offers/steam_offer_watcher.py index debce24b..66e183ed 100644 --- a/bot/src/modules/special_offers/steam_offer_watcher.py +++ b/bot/src/modules/special_offers/steam_offer_watcher.py @@ -66,7 +66,7 @@ class SteamOfferWatcher(TaskABC): def _get_games_from_page(self, start: int, count: int) -> List[SteamSpecialOffer]: games = List(SteamSpecialOffer) result = requests.get( - f"https://store.steampowered.com/search/results?query&start={start}&count={count}&force_infinite=1&specials=1" + f"https://store.steampowered.com/search/results?query&start={start}&count={count}&force_infinite=1&specials=1&filter=topsellers" ) soup = bs4.BeautifulSoup(result.text, "lxml") elements = soup.find_all("a", {"class": "search_result_row"}) @@ -109,7 +109,7 @@ class SteamOfferWatcher(TaskABC): new_offers = List(SteamSpecialOffer) # sale_count = self._get_max_count() + 100 - sale_count = 500 # only look at first 500 + sale_count = 250 # only look at first 500 # todo: let admins change the value self._logger.debug(__name__, f"Get special offers from 0 to {sale_count}") for i in range(0, sale_count, 100):