mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-27 08:35:16 -04:00
Log the reauth response
This commit is contained in:
parent
91159f0509
commit
c3b8f0c8af
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ reg = re.compile(r"\d\d-\d\d-\d\d_\d\d-\d\d")
|
|||
def re_auth_pushshift(old_token):
|
||||
response = requests.post(f"https://auth.pushshift.io/refresh?access_token={old_token}")
|
||||
result = response.json()
|
||||
log.warning(f"Reauth responce: {str(result)}")
|
||||
new_token = result['access_token']
|
||||
log.warning(f"New pushshift token: {new_token}")
|
||||
return new_token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue