|
@@ -68,7 +68,7 @@ def hksp_search(key, sensitive_words):
|
|
|
"""
|
|
|
timestamp_seconds = time.time()
|
|
|
timestamp_milliseconds = int(timestamp_seconds * 1000)
|
|
|
- url = 'https://haokan.baidu.com/haokan/ui-search/pc/search/video'
|
|
|
+ url = 'http://haokan.baidu.com/haokan/ui-search/pc/search/video'
|
|
|
# 定义请求的参数
|
|
|
strings = "{}_{}_{}_{}_{}".format(1, urllib.parse.quote(key), 10, timestamp_milliseconds, 1)
|
|
|
sign = hashlib.md5(strings.encode()).hexdigest()
|
|
@@ -119,4 +119,4 @@ def hksp_search(key, sensitive_words):
|
|
|
pass
|
|
|
return L
|
|
|
except:
|
|
|
- return []
|
|
|
+ return []
|