From 301067be0dd7d97a18f9939d724906aedcf0010a Mon Sep 17 00:00:00 2001 From: Li Date: Wed, 31 Aug 2022 22:03:10 +1200 Subject: [PATCH] Direct numbers are bad --- Scraper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scraper.py b/Scraper.py index fe3ab9b..c6c7c6d 100644 --- a/Scraper.py +++ b/Scraper.py @@ -10,6 +10,7 @@ import json PlayFab.GetEntityToken(PlayFab.LoginWithCustomId()['PlayFabId'], 'master_player_account') MAX_SEARCH = 300 +MAX_SKIP = 10000 # Get total number of items in marketplace totalItems = PlayFab.Search("", "", "creationDate ASC", None, 1, 0)["Count"] @@ -33,7 +34,7 @@ while len(resultsDict) < totalItems: skip += MAX_SEARCH - if skip > 10000: + if skip > MAX_SKIP: searchFilter = "(CreationDate ge " + searchResults["Items"][-1]["CreationDate"] +")"; skip = 0