diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-25 13:43:39 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-25 13:43:39 +0100 |
| commit | 1c550fdc51d16ec15c39edb346c28d5f07a2a425 (patch) | |
| tree | 1f1aa46ae5eb69e3fb146f64cbc29acee4b6fb7a /crawler.py | |
| parent | 6de987c9cb845bdf164fbb344d98448f5dc05899 (diff) | |
| download | apigrabber-1c550fdc51d16ec15c39edb346c28d5f07a2a425.tar.gz apigrabber-1c550fdc51d16ec15c39edb346c28d5f07a2a425.zip | |
add VAINSOCIAL_APIKEY env variable
Diffstat (limited to 'crawler.py')
| -rw-r--r-- | crawler.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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): |
