summaryrefslogtreecommitdiff
path: root/getData.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-03-16 03:40:15 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-03-16 03:40:15 +0200
commit8fbcafc6fc2fe274537b297e6eb2473a68150255 (patch)
treee0759e0b226e52145bc24247d3e8ec08de387b91 /getData.py
parentb73753d56bbcd28732d283cc3c2aa65fd88f99bf (diff)
minor fixes
Diffstat (limited to 'getData.py')
-rw-r--r--getData.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/getData.py b/getData.py
index dd55cc2..7c64b30 100644
--- a/getData.py
+++ b/getData.py
@@ -59,12 +59,14 @@ def getTeamsData(url, headers):
def getPlayerData(url, headers):
+ print("Stared reading players data")
+
# First request is made just to get the amount of pages that must be looped through
querystring = {"per_page":"100","page":"0"}
response = requests.request("GET", url+"players", headers=headers, params=querystring)
pageCount = response.json()["meta"]["total_pages"]
-
+ print("Pages to read: "+str(pageCount))
for el in range(1, pageCount+1):
# Requesting pages in loop till pageCount