Open tom5610 opened 7 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
THANK YOU!
@tom5610 the code is perfect bro. you can even enhance it as below so the learner can understand it easily
from duckduckgo_search import DDGS
from fastcore.all import *
def search_images(term, max_images):
return L(DDGS().images(keywords=term, max_results=max_images)).itemgot('image')
urls = search_images("birds",100)
urls[0]
I just came here to make this exact pull request! Fix works
Using class DDGS rather than calling ddg functions directly.