|
@@ -278,6 +278,10 @@ def insertTask():
|
|
|
return jsonify(
|
|
|
{'code': 200, 'message': 'task create success', 'success_list': success_list, 'fail_list': fail_list})
|
|
|
except Exception as e:
|
|
|
+ # task_name = da
|
|
|
+ # s_sql = f'select * from crawler_task where task_name={}'
|
|
|
+ # d_sql = f'delete from crawler_task where task_id={task_id}'
|
|
|
+ # mysql_con.del_values(d_sql)
|
|
|
return jsonify({'code': 500, 'message': '任务写入失败,原因:{e}'})
|
|
|
|
|
|
|
|
@@ -600,7 +604,7 @@ def create_uid(task, task_id, spider_link):
|
|
|
)
|
|
|
success_list.append(uer_info)
|
|
|
|
|
|
- return success_list, fail_list
|
|
|
+ return success_list, fail_list, repeat_list
|
|
|
|
|
|
|
|
|
@app.route("/v1/crawler/author/create", methods=["POST"])
|