gegef2009 xiaohzho commited on
Commit
1260a60
·
1 Parent(s): efda1c9

fix duckduckgo search subsection error (#4430)

Browse files

### What problem does this PR solve?

duckduckgo search 6.3.0 still has error sometimes, need to update to
7.2.0, after updated, it works ok.
this PR is going to fix this issue
https://github.com/infiniflow/ragflow/issues/4396

### Type of change

Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: xiaohzho <[email protected]>

Files changed (2) hide show
  1. poetry.lock +17 -17
  2. pyproject.toml +1 -1
poetry.lock CHANGED
@@ -1789,22 +1789,22 @@ files = [
1789
 
1790
  [[package]]
1791
  name = "duckduckgo-search"
1792
- version = "6.3.7"
1793
  description = "Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine."
1794
  optional = false
1795
  python-versions = ">=3.8"
1796
  files = [
1797
- {file = "duckduckgo_search-6.3.7-py3-none-any.whl", hash = "sha256:6a831a27977751e8928222f04c99a5d069ff80e2a7c78b699c9b9ac6cb48c41b"},
1798
- {file = "duckduckgo_search-6.3.7.tar.gz", hash = "sha256:53d84966429a6377647e2a1ea7224b657575c7a4d506729bdb837e4ee12915ed"},
1799
  ]
1800
 
1801
  [package.dependencies]
1802
  click = ">=8.1.7"
1803
- primp = ">=0.8.1"
 
1804
 
1805
  [package.extras]
1806
- dev = ["mypy (>=1.11.1)", "pytest (>=8.3.1)", "pytest-asyncio (>=0.23.8)", "ruff (>=0.6.1)"]
1807
- lxml = ["lxml (>=5.2.2)"]
1808
 
1809
  [[package]]
1810
  name = "editdistance"
@@ -6071,20 +6071,20 @@ plot = ["matplotlib"]
6071
 
6072
  [[package]]
6073
  name = "primp"
6074
- version = "0.9.3"
6075
  description = "HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints"
6076
  optional = false
6077
  python-versions = ">=3.8"
6078
  files = [
6079
- {file = "primp-0.9.3-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:30d5c4f03abeab8fd307ddf4c615d8d093367f3be1a5299078f811982db7cb6f"},
6080
- {file = "primp-0.9.3-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:3e3bff0bcffdf746b68486db24ac6dc6db2f202f048f82e0303385ef76dc5c1e"},
6081
- {file = "primp-0.9.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15325ec0b916e48a65929f647d7dd12fb1400e76a6aeba72f7e205c94c4aaa82"},
6082
- {file = "primp-0.9.3-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:de97cc10130a68edcd4e173cf01c628a10b9b6a6e19393200b12f1a1ddcb863d"},
6083
- {file = "primp-0.9.3-cp38-abi3-manylinux_2_34_armv7l.whl", hash = "sha256:cba94e48c9b245a9daac96807aa020525c1a66c1141d4c2b11db4e2ccb69da33"},
6084
- {file = "primp-0.9.3-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1d1df5a9808b82b960df1f72ff53a9ab9c77dce61fcbe5776a11cf5f59dd7f28"},
6085
- {file = "primp-0.9.3-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:484fc69dbed5ca14561d54aecd17f011c8ffa495023134bb9a94edb808ae3e1b"},
6086
- {file = "primp-0.9.3-cp38-abi3-win_amd64.whl", hash = "sha256:824a5606ad67cb842ccc5158f19f9ccd1387e25e1374edd69f87cd7616cf3ea9"},
6087
- {file = "primp-0.9.3.tar.gz", hash = "sha256:bc6490c659c741c6586bd160ed51b2e04f9dbc3b61bc1dd1af1ce66eefea663e"},
6088
  ]
6089
 
6090
  [package.extras]
@@ -10027,4 +10027,4 @@ cffi = ["cffi (>=1.11)"]
10027
  [metadata]
10028
  lock-version = "2.0"
10029
  python-versions = ">=3.10,<3.13"
10030
- content-hash = "49c7bd779f6a071151ad981c3c67b2d8045c91860ba604d29136a2240fc54c64"
 
1789
 
1790
  [[package]]
1791
  name = "duckduckgo-search"
1792
+ version = "7.2.1"
1793
  description = "Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine."
1794
  optional = false
1795
  python-versions = ">=3.8"
1796
  files = [
1797
+ {file = "duckduckgo_search-7.2.1-py3-none-any.whl", hash = "sha256:72ebbf6ad8759e3c3c79521cd66256e7a4ac741c522fd9342db94de91745ef87"},
1798
+ {file = "duckduckgo_search-7.2.1.tar.gz", hash = "sha256:cb214b6cd9505a41c228445a9c254620b93519c59292662d62ef19d0220618a0"},
1799
  ]
1800
 
1801
  [package.dependencies]
1802
  click = ">=8.1.7"
1803
+ lxml = ">=5.3.0"
1804
+ primp = ">=0.10.0"
1805
 
1806
  [package.extras]
1807
+ dev = ["mypy (>=1.13.0)", "pytest (>=8.3.4)", "pytest-dependency (>=0.6.0)", "ruff (>=0.8.3)"]
 
1808
 
1809
  [[package]]
1810
  name = "editdistance"
 
6071
 
6072
  [[package]]
6073
  name = "primp"
6074
+ version = "0.10.0"
6075
  description = "HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints"
6076
  optional = false
6077
  python-versions = ">=3.8"
6078
  files = [
6079
+ {file = "primp-0.10.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:7a91a089bf2962b5b56c8d83d09535eb81cf55b53c09d83208b9e5a715cf2c17"},
6080
+ {file = "primp-0.10.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:0128453cce81552f7aa6ac2bf9b8741b7816cdb2d10536e62c77daaf6483b9af"},
6081
+ {file = "primp-0.10.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a959e9a83cff0ae7a85a02cc183e4db636f69ff41dddb7c4e32f997924923417"},
6082
+ {file = "primp-0.10.0-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:8e711cfa019fa9bdc0cba4d5d596f319c884a4329e505bd73e92eee0b024061a"},
6083
+ {file = "primp-0.10.0-cp38-abi3-manylinux_2_34_armv7l.whl", hash = "sha256:b859336d9a35669b68a29c5d8f050e0dca380452dabf6c9667bb8599f010d164"},
6084
+ {file = "primp-0.10.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:dc875cc9a733fe3e6344a37f2b5888e0a9605bb37807fc3009f3b03786408f34"},
6085
+ {file = "primp-0.10.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a27c5d997c37bf8237963c11e376eaa66e7eccee39164e3e259a1c3767c304d6"},
6086
+ {file = "primp-0.10.0-cp38-abi3-win_amd64.whl", hash = "sha256:7fe94c3164c2efffff08f7f54c018ac445112961b3ce4f4f499315ba0a9d1ef3"},
6087
+ {file = "primp-0.10.0.tar.gz", hash = "sha256:93142590a5a1958240ee5b74faaf2f55185ed499ccaabc622d71cb0cc8a47a0b"},
6088
  ]
6089
 
6090
  [package.extras]
 
10027
  [metadata]
10028
  lock-version = "2.0"
10029
  python-versions = ">=3.10,<3.13"
10030
+ content-hash = "a04bec1c78e27365d884248e7759dd85231605c2780a951d73fe8b4d5018c87b"
pyproject.toml CHANGED
@@ -31,7 +31,7 @@ dashscope = "1.20.11"
31
  deepl = "1.18.0"
32
  demjson3 = "3.0.6"
33
  discord-py = "2.3.2"
34
- duckduckgo-search = "~6.3.0"
35
  editdistance = "0.8.1"
36
  elastic-transport = "8.12.0"
37
  elasticsearch = "8.12.1"
 
31
  deepl = "1.18.0"
32
  demjson3 = "3.0.6"
33
  discord-py = "2.3.2"
34
+ duckduckgo-search = "~7.2.0"
35
  editdistance = "0.8.1"
36
  elastic-transport = "8.12.0"
37
  elasticsearch = "8.12.1"