Task crawl result now logged in a database

This commit is contained in:
Simon
2018-06-12 11:03:45 -04:00
parent 011b8455a7
commit 6d48f1f780
6 changed files with 70 additions and 29 deletions

View File

@@ -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)