From 1c550fdc51d16ec15c39edb346c28d5f07a2a425 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 25 Feb 2017 13:43:39 +0100 Subject: add VAINSOCIAL_APIKEY env variable --- crawler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawler.py') 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): -- cgit v1.3.1