mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 10:26:44 +00:00
20 lines
482 B
Python
20 lines
482 B
Python
import requests
|
|
import json
|
|
|
|
|
|
payload = json.dumps({
|
|
"website_id": 3,
|
|
# "url": "ftp://132.249.213.137",
|
|
"url": "http://localhost:8000/",
|
|
# "url": "http://dlst18.xyz/
|
|
# dl/vip/film/",
|
|
"priority": 2,
|
|
"callback_type": "",
|
|
"callback_args": "{}"
|
|
})
|
|
|
|
r = requests.post("http://localhost:5001/task/put",
|
|
headers={"Content-Type": "application/json",
|
|
"Authorization": "Token abc"},
|
|
data=payload)
|