hjxdl 0.1.32__py3-none-any.whl → 0.1.34__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 +3 -4
- {hjxdl-0.1.32.dist-info → hjxdl-0.1.34.dist-info}/METADATA +1 -1
- {hjxdl-0.1.32.dist-info → hjxdl-0.1.34.dist-info}/RECORD +6 -6
- {hjxdl-0.1.32.dist-info → hjxdl-0.1.34.dist-info}/WHEEL +0 -0
- {hjxdl-0.1.32.dist-info → hjxdl-0.1.34.dist-info}/top_level.txt +0 -0
hdl/_version.py
CHANGED
hdl/utils/database_tools/web.py
CHANGED
@@ -26,7 +26,7 @@ def web_search_text(
|
|
26
26
|
return f"{str(e)}: 未搜索(获取)到相关内容,可过一段时间再次尝试。"
|
27
27
|
for result in results:
|
28
28
|
if "wikipedia" not in result['href']:
|
29
|
-
|
29
|
+
print(f"Getting info from {result['href']}")
|
30
30
|
headers = {
|
31
31
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
|
32
32
|
}
|
@@ -43,9 +43,8 @@ def web_search_text(
|
|
43
43
|
# 删除空行
|
44
44
|
cleaned_text = "\n".join([line.strip() for line in text.splitlines() if line.strip()])
|
45
45
|
|
46
|
-
print(cleaned_text)
|
47
46
|
result_str += cleaned_text
|
48
47
|
result_str += "\n"
|
49
|
-
return result_str
|
50
48
|
except Exception as e:
|
51
|
-
|
49
|
+
print(f"{str(e)}: 从{result['href']}未搜索(获取)到相关内容。")
|
50
|
+
return result_str
|
@@ -1,5 +1,5 @@
|
|
1
1
|
hdl/__init__.py,sha256=GffnD0jLJdhkd-vo989v40N90sQbofkayRBwxc6TVhQ,72
|
2
|
-
hdl/_version.py,sha256=
|
2
|
+
hdl/_version.py,sha256=HTto43gFp4nzA8FYRptcuOthedaiqKzMJcHoUJ2sgk4,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=KUnVG-8raifEJ_N0b3c8LkTTIfn9NIyw8LX6qvpA3YU,723
|
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=SJZOptT2wodP5iC0qcmRLK_leBlgTyNetd3q8UzkUyQ,1824
|
124
124
|
hdl/utils/desc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
125
125
|
hdl/utils/desc/func_desc.py,sha256=pTsqcozGsdO1gVXpN7_IaDv7fNfZ7elyI_ebyXvlsA8,1567
|
126
126
|
hdl/utils/desc/template.py,sha256=a3NcSihzZMm9Bk76iDVe54_xBDceGmLebS0XMONE3nk,1172
|
@@ -134,7 +134,7 @@ hdl/utils/schedulers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
134
134
|
hdl/utils/schedulers/norm_lr.py,sha256=bDwCmdEK-WkgxQMFBiMuchv8Mm7C0-GZJ6usm-PQk14,4461
|
135
135
|
hdl/utils/weather/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
136
136
|
hdl/utils/weather/weather.py,sha256=k11o6wM15kF8b9NMlEfrg68ak-SfSYLN3nOOflFUv-I,4381
|
137
|
-
hjxdl-0.1.
|
138
|
-
hjxdl-0.1.
|
139
|
-
hjxdl-0.1.
|
140
|
-
hjxdl-0.1.
|
137
|
+
hjxdl-0.1.34.dist-info/METADATA,sha256=ekWhgvdK_68AmbsssSccXly1BeWM-qZb6I6D91tlAks,737
|
138
|
+
hjxdl-0.1.34.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
139
|
+
hjxdl-0.1.34.dist-info/top_level.txt,sha256=-kxwTM5JPhylp06z3zAVO3w6_h7wtBfBo2zgM6YZoTk,4
|
140
|
+
hjxdl-0.1.34.dist-info/RECORD,,
|
File without changes
|
File without changes
|