I can not find a way to use duckduckgo to download images

I ran into the same issue and put a post on the Part 1 (2022) thread. Lesson 2 official topic - #906 by Studio

In short use this method. For some reason the color parameter is required.

def search_images(keywords, max_images=10, color='color'):
    results = DDGS().images(
        query=keywords,
        max_results=max_images,
        color=color,
    )
    return L(results).itemgot('image')
1 Like