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
927 stars 117 forks source link

cli: ddgs searches (news, text) hang after returning 1 result #214

Closed jonny7737 closed 1 month ago

jonny7737 commented 1 month ago

Before you open an issue:

Describe the bug

What the bug is. command line ddgs returns 1 result then hangs until CTL-C to abort. I have waited as long as 25 minutes for additional results

Steps to reproduce the problem: Please provide the steps to reproduce this problem. from macos terminal: ddgs text -k "open source ai agent" -r en-us -s off -m 5

Actual keywords do not change the outcome nor does using text or news.

Specify this information

jonny7737 commented 1 month ago

It has been some time since I last used ddg cli tool so I cannot say when this started. I have uninstall ddg and installed 5.3.0 - same 1 result and hang behavior. Back to 5.3.1b1 Using the API from python seems to work. I have not verified the returned results but I do get the requested number of results.

I am uncertain if this is an environment problem or a bug in ddg.

deedy5 commented 1 month ago

@jonny7737 CLI version prints the result in the terminal 1 result at a time. Just press "Enter" to see the rest of the results.

jonny7737 commented 1 month ago

HAHAHAHAHA! Thanks!