JorgePoblete / DuckDuckGoImages

Search and download images using DuckDuckGo search engine
MIT License
15 stars 4 forks source link

May require new example code #3

Open MrTBagg opened 2 years ago

MrTBagg commented 2 years ago

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)

JorgePoblete commented 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

not-william commented 2 years ago

I'm getting the same error using v2.0.8

JorgePoblete commented 2 years ago

i'll take a look

JorgePoblete commented 2 years ago

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.

rolive81 commented 2 years ago

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.

satyrmipt commented 2 months ago

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.