Compare commits
2 Commits
595fb8f63d
...
b6f069010b
Author | SHA1 | Date |
---|---|---|
TheTechRobo | b6f069010b | |
TheTechRobo | f270e585e7 |
|
@ -43,6 +43,7 @@ class PlaceScraper:
|
|||
{"time": time.time(), "url": url, "data": data}
|
||||
)
|
||||
async def regen_token(self, sesh):
|
||||
print("Regenerating token...")
|
||||
async with sesh.get("https://reddit.com/r/place", headers={"User-Agent": "Mozilla"}) as f:
|
||||
a = await f.text()
|
||||
i = a.index('''"session":{"accessToken":"''')
|
||||
|
@ -61,6 +62,7 @@ class PlaceScraper:
|
|||
await self.add_to_db(self.db, "sent_ws", {"sent": send, "time": time.time()})
|
||||
async def run_forever(self):
|
||||
global STOP, STOPPED
|
||||
prev = {}
|
||||
cert = False
|
||||
if type(os.environ.get("DISABLE_CERT_VERIF")) is None:
|
||||
cert = True
|
||||
|
|
Loading…
Reference in New Issue