Hello all, I am having the same issue. I have updated the code but it keeps blowing up, would someone be able to help:
from fastcore.all import *
from duckduckgo_search import DDGS
def search_images(keywords, max_images = 30):
print(f"Searching for {keywords}")
return L(DDGS().images(keywords,max_results=max_images)).itemgot(‘image’)
urls = search_images(‘bird photos’, max_images=1)
urls[0]
Which returns a rather long error, but ultimately ends up with:
TypeError: images() got an unexpected keyword argument ‘max_results’
Any help would be appreciated!
Thank you