hjxdl 0.2.80__py3-none-any.whl → 0.2.81__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hdl/_version.py +2 -2
- hdl/utils/database_tools/web.py +5 -0
- {hjxdl-0.2.80.dist-info → hjxdl-0.2.81.dist-info}/METADATA +1 -1
- {hjxdl-0.2.80.dist-info → hjxdl-0.2.81.dist-info}/RECORD +6 -6
- {hjxdl-0.2.80.dist-info → hjxdl-0.2.81.dist-info}/WHEEL +0 -0
- {hjxdl-0.2.80.dist-info → hjxdl-0.2.81.dist-info}/top_level.txt +0 -0
hdl/_version.py
CHANGED
hdl/utils/database_tools/web.py
CHANGED
@@ -63,6 +63,11 @@ def fetch_baidu_results(query, max_n_links=3):
|
|
63
63
|
:param query: str 要搜索的文本
|
64
64
|
:return: str 提取的网页内容拼接字符串
|
65
65
|
"""
|
66
|
+
try:
|
67
|
+
max_n_links = int(max_n_links)
|
68
|
+
except Exception as e:
|
69
|
+
print(e)
|
70
|
+
max_n_links = 3
|
66
71
|
headers = {
|
67
72
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
|
68
73
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
hdl/__init__.py,sha256=GffnD0jLJdhkd-vo989v40N90sQbofkayRBwxc6TVhQ,72
|
2
|
-
hdl/_version.py,sha256=
|
2
|
+
hdl/_version.py,sha256=zGe1Rd8EACJkK-TUVdW-iL5aWdiAgqoBuAGXvIMQylc,413
|
3
3
|
hdl/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
hdl/args/loss_args.py,sha256=s7YzSdd7IjD24rZvvOrxLLFqMZQb9YylxKeyelSdrTk,70
|
5
5
|
hdl/controllers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -120,7 +120,7 @@ hdl/utils/chemical_tools/sdf.py,sha256=71PEqU0H885L6IeGHEa6n7ZLZThvMsZOVLuFG2wno
|
|
120
120
|
hdl/utils/database_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
121
121
|
hdl/utils/database_tools/connect.py,sha256=xCacGucKxlQUXs6AsNddpeECvdqT1180V1ZWqHrUdNA,875
|
122
122
|
hdl/utils/database_tools/datetime.py,sha256=xqE2xNiOpADzX-R8_bM0bioJRF3Ay9Jp1CAG6dy6uVI,1202
|
123
|
-
hdl/utils/database_tools/web.py,sha256=
|
123
|
+
hdl/utils/database_tools/web.py,sha256=_kg9Z-ZhxckWRTrcRWStLGu_5iYVy1uVh965gf72oPQ,5340
|
124
124
|
hdl/utils/desc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
125
125
|
hdl/utils/desc/func_desc.py,sha256=VCqjvZs7qCwBq3NR3ZRknl4oiO5-JP7xm-Rx85W2exg,3365
|
126
126
|
hdl/utils/desc/template.py,sha256=GJSXkVzdTAQoNT3j7YTLhz8-4CmvCMt2gLr7YBYPRWw,2192
|
@@ -139,7 +139,7 @@ hdl/utils/schedulers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
139
139
|
hdl/utils/schedulers/norm_lr.py,sha256=bDwCmdEK-WkgxQMFBiMuchv8Mm7C0-GZJ6usm-PQk14,4461
|
140
140
|
hdl/utils/weather/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
141
141
|
hdl/utils/weather/weather.py,sha256=k11o6wM15kF8b9NMlEfrg68ak-SfSYLN3nOOflFUv-I,4381
|
142
|
-
hjxdl-0.2.
|
143
|
-
hjxdl-0.2.
|
144
|
-
hjxdl-0.2.
|
145
|
-
hjxdl-0.2.
|
142
|
+
hjxdl-0.2.81.dist-info/METADATA,sha256=o1WNj6UAP1q91mKzLw_h4HhW-iNI73XGYQaW1KIGlwY,836
|
143
|
+
hjxdl-0.2.81.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
144
|
+
hjxdl-0.2.81.dist-info/top_level.txt,sha256=-kxwTM5JPhylp06z3zAVO3w6_h7wtBfBo2zgM6YZoTk,4
|
145
|
+
hjxdl-0.2.81.dist-info/RECORD,,
|
File without changes
|
File without changes
|