mirror of
https://github.com/simon987/od-database.git
synced 2025-12-14 07:09:03 +00:00
Task crawl result now logged in a database
This commit is contained in:
@@ -3,7 +3,8 @@ import json
|
||||
|
||||
|
||||
payload = json.dumps({
|
||||
"url": "http://138.197.215.189/",
|
||||
"website_id": 123,
|
||||
"url": "http://124.158.108.137/ebooks/",
|
||||
"priority": 2,
|
||||
"callback_type": "",
|
||||
"callback_args": "{}"
|
||||
@@ -11,4 +12,4 @@ payload = json.dumps({
|
||||
|
||||
r = requests.post("http://localhost:5000/task/put",
|
||||
headers={"Content-Type": "application/json"},
|
||||
data=payload)
|
||||
data=payload)
|
||||
|
||||
Reference in New Issue
Block a user