summaryrefslogtreecommitdiff
path: root/crawler.py
diff options
context:
space:
mode:
Diffstat (limited to 'crawler.py')
-rw-r--r--crawler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawler.py b/crawler.py
index 7ceda92..b68ec22 100644
--- a/crawler.py
+++ b/crawler.py
@@ -4,15 +4,14 @@ import asyncio
import logging
import aiohttp
-TOKEN = "aaa.bbb.ccc"
APIURL = "https://api.dc01.gamelockerapp.com/"
class Crawler(object):
- def __init__(self):
+ def __init__(self, token):
"""Sets constants."""
self._apiurl = APIURL
- self._token = TOKEN
+ self._token = token
self._pagelimit = 50
async def _req(self, session, path, params=None):