|
@@ -82,8 +82,8 @@ def insertTask():
|
|
|
data['min_publish_time'] = int(data['min_publish_time'] / 1000)
|
|
|
else:
|
|
|
data['min_publish_time'] = 0
|
|
|
- if data['min_publish_day']:
|
|
|
- data['min_publish_day'] = 0
|
|
|
+
|
|
|
+
|
|
|
data['next_time'] = int(data['next_time'] / 1000)
|
|
|
data['insert_time'] = int(time.time())
|
|
|
data['update_time'] = int(time.time())
|
|
@@ -170,11 +170,11 @@ def updateTask():
|
|
|
return jsonify({'code': 400, 'message': '任务更新失败'})
|
|
|
|
|
|
|
|
|
-def get_user_info(source):
|
|
|
- source_spider = {
|
|
|
- 'xigua': xigua_user_info
|
|
|
- }
|
|
|
- return source_spider.get(source)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
@app.route("/v1/crawler/author/create", methods=["POST"])
|