deedy5 / duckduckgo_search

Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine. Downloading files and images to a local hard drive.
MIT License
1.12k stars 131 forks source link

_normalize removes apostrophes from search results #37

Closed rmfrt closed 1 year ago

rmfrt commented 1 year ago

In ddg.py, line 54 body = _normalize(row["a"]) removes the apostrophe characters (') which makes the search result less readable (same for "title": _normalize(row["t"]), on line 58). From the examples on the duckduckgo_search GitHub page, this seems to be a problem that did not exist previously. Removing the apostrophe is particularly problematic in French, this character is frequently used, the results are no longer understandable. Thanks!

deedy5 commented 1 year ago

Thank you for finding this bug. Fixed in version 2.8.1. You can update the package with the command pip install -U duckduckgo_search.