mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
barebones crawl_server microservice
This commit is contained in:
14
debug_put.py
Normal file
14
debug_put.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
|
||||
payload = json.dumps({
|
||||
"url": "http://124.158.108.137/ebooks/",
|
||||
"priority": 2,
|
||||
"callback_type": "",
|
||||
"callback_args": "{}"
|
||||
})
|
||||
|
||||
r = requests.post("http://localhost:5000/task/put",
|
||||
headers={"Content-Type": "application/json"},
|
||||
data=payload)
|
||||
Reference in New Issue
Block a user