aient 1.0.32__py3-none-any.whl → 1.0.33__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.
- aient/plugins/websearch.py +4 -4
- {aient-1.0.32.dist-info → aient-1.0.33.dist-info}/METADATA +1 -1
- {aient-1.0.32.dist-info → aient-1.0.33.dist-info}/RECORD +6 -6
- {aient-1.0.32.dist-info → aient-1.0.33.dist-info}/WHEEL +0 -0
- {aient-1.0.32.dist-info → aient-1.0.33.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.32.dist-info → aient-1.0.33.dist-info}/top_level.txt +0 -0
aient/plugins/websearch.py
CHANGED
@@ -49,10 +49,10 @@ def url_to_markdown(url):
|
|
49
49
|
body = Cleaner(javascript=True, style=True).clean_html(body)
|
50
50
|
return ''.join(lxml.html.tostring(c, encoding='unicode') for c in body)
|
51
51
|
except Exception as e:
|
52
|
-
print('\033[31m')
|
53
|
-
print("error: url_to_markdown url", url)
|
54
|
-
print("error", e)
|
55
|
-
print('\033[0m')
|
52
|
+
# print('\033[31m')
|
53
|
+
# print("error: url_to_markdown url", url)
|
54
|
+
# print("error", e)
|
55
|
+
# print('\033[0m')
|
56
56
|
return "抱歉,目前无法访问该网页。"
|
57
57
|
|
58
58
|
# 将HTML转换为Markdown
|
@@ -25,12 +25,12 @@ aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
|
|
25
25
|
aient/plugins/registry.py,sha256=YknzhieU_8nQ3oKlUSSWDB4X7t2Jx0JnqT2Jd9Xsvfk,3574
|
26
26
|
aient/plugins/run_python.py,sha256=dgcUwBunMuDkaSKR5bToudVzSdrXVewktDDFUz_iIOQ,4589
|
27
27
|
aient/plugins/today.py,sha256=btnXJNqWorJDKPvH9PBTdHaExpVI1YPuSAeRrq-fg9A,667
|
28
|
-
aient/plugins/websearch.py,sha256=
|
28
|
+
aient/plugins/websearch.py,sha256=yiBzqXK5X220ibR-zko3VDsn4QOnLu1k6E2YOygCeTQ,15185
|
29
29
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
31
31
|
aient/utils/scripts.py,sha256=O-0IXN3mezPauFs6fw83WDDgklpXTDvcbJBNTDrsIG0,8201
|
32
|
-
aient-1.0.
|
33
|
-
aient-1.0.
|
34
|
-
aient-1.0.
|
35
|
-
aient-1.0.
|
36
|
-
aient-1.0.
|
32
|
+
aient-1.0.33.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
33
|
+
aient-1.0.33.dist-info/METADATA,sha256=KCS4VPiA0DuFlqX_ulQvFaMDWzC04fV5F_U9jXQrsWw,4986
|
34
|
+
aient-1.0.33.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
35
|
+
aient-1.0.33.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
36
|
+
aient-1.0.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|