mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
18 lines
448 B
Python
18 lines
448 B
Python
import requests
|
|
import json
|
|
|
|
|
|
payload = json.dumps({
|
|
"website_id": 123,
|
|
"url": "http://alphamediazone.com/data/Movies1/",
|
|
# "url": "http://localhost:8000/",
|
|
"priority": 2,
|
|
"callback_type": "",
|
|
"callback_args": "{}"
|
|
})
|
|
|
|
r = requests.post("http://localhost:5001/task/put",
|
|
headers={"Content-Type": "application/json",
|
|
"Authorization": "Token abc"},
|
|
data=payload)
|