df
This commit is contained in:
parent
3e3926b751
commit
992fcb476c
1 changed files with 2 additions and 1 deletions
|
@ -538,11 +538,12 @@ def check_processing_thread(post, link, db):
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
||||||
image_id = link.split('/')[-1].rstrip('.mp4')
|
image_id = link.split('/')[-1].rstrip('.mp4')
|
||||||
|
print(f"request https://api.imgur.com/image/{image_id}")
|
||||||
|
|
||||||
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
||||||
req = requests.get(f"https://api.imgur.com/image/{image_id}", headers=headers)
|
req = requests.get(f"https://api.imgur.com/image/{image_id}", headers=headers)
|
||||||
|
|
||||||
print(req.text)
|
#print(req.text)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/submit")
|
@app.post("/submit")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue