Open MrTBagg opened 2 years ago
the example is correct, the problem was that the user agent used is outdated and duckduck go blocked the requests, the user agent has been updated in v2.0.8, there the example should work again
I'm getting the same error using v2.0.8
i'll take a look
it seems that duckduckgo has made a change on how it works, for some reason you need to actually made a search on duckduckgo via your browser to made the example and all the other features work for some time, i'll be investigating what was this change to upload a fix, but in the meantine, before running your code, make a search on your browser on duckduckgo.
I am getting the same error messagem type error: not enough values to unpack (expected 2, got 0) I did the search in duckduckgo via browser and it is working.
it seems that duckduckgo has made a change on how it works, for some reason you need to actually made a search on duckduckgo via your browser to made the example and all the other features work for some time, i'll be investigating what was this change to upload a fix, but in the meantine, before running your code, make a search on your browser on duckduckgo.
It does not help to search "kittens" in the browser to make the python api work. At least not in Colab.
The current example code fails at run. Previous versions worked OK. The options don't seem to work properly.
Message 'ValueError: not enough values to unpack (expected 2, got 0)