添加cdn判断模块

This commit is contained in:
Jing Ling
2020-07-26 03:23:15 +08:00
parent ca8d34ee8d
commit 91f272f4b6
10 changed files with 797 additions and 17 deletions
+6
View File
@@ -1,3 +1,4 @@
import json
import os
import re
import sys
@@ -215,6 +216,11 @@ def check_format(format, count):
return 'csv'
def load_json(path):
with open(path) as fp:
return json.load(fp)
def save_db(name, data, module):
"""
Save request results to database