|
@@ -89,6 +89,8 @@ def hksp_search(key):
|
|
|
}
|
|
|
# 发送GET请求
|
|
|
response = requests.get(url, headers=headers, params=params).json()
|
|
|
+ print("baidu")
|
|
|
+ print(response)
|
|
|
try:
|
|
|
data_list = response['data']['list']
|
|
|
L = []
|
|
@@ -100,7 +102,8 @@ def hksp_search(key):
|
|
|
L.append(res)
|
|
|
else:
|
|
|
continue
|
|
|
- except:
|
|
|
+ except Exception as e:
|
|
|
+ print(e)
|
|
|
pass
|
|
|
return L
|
|
|
except:
|