From 51d49bf9f7ead4888db6f3f0d2f95a5e07cea95c Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 25 Aug 2024 23:12:33 +0200 Subject: [PATCH] More games --- personal_data/fetchers/psnprofiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/personal_data/fetchers/psnprofiles.py b/personal_data/fetchers/psnprofiles.py index a3b2d7f..cabfa77 100644 --- a/personal_data/fetchers/psnprofiles.py +++ b/personal_data/fetchers/psnprofiles.py @@ -25,7 +25,7 @@ def game_psnprofiles_id_from_url(relative_url: str) -> int: return int(result) -MAX_GAME_ITERATIONS = 10 +MAX_NUMBER_GAMES_TO_PARSE = 1000 @dataclasses.dataclass(frozen=True) class PsnProfilesScraper(Scraper): @@ -50,7 +50,7 @@ class PsnProfilesScraper(Scraper): yield from self._scrape_game_trophies(game_id, game_name) del game_id idx += 1 - if idx >= MAX_GAME_ITERATIONS: + if idx >= MAX_NUMBER_GAMES_TO_PARSE: break def _setup_cache(self):