Problem downloading images in Chapter 2 ("Downloading images with DuckDuckGo")

What environment are you running your code in? When I opened a blank Colab notebook and tried to run the code you provided it seemed to run without hitting the type error you are getting(see attached screenshot).


Maybe try reinstalling ddgs to make sure you have the latest version.

pip uninstall -y duckduckgo-search ddgs
pip install ddgs

1 Like