From d321416d0e3e56769e673fa8f15949f65d1e2967 Mon Sep 17 00:00:00 2001 From: deedy5 <65482418+deedy5@users.noreply.github.com> Date: Thu, 20 Jan 2022 11:46:33 +0300 Subject: [PATCH] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 279478f1..a54b3375 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ ddg(keywords, region='wt-wt', safesearch='Moderate', time=None, max_results=30, ``` ### Example ```python +from duckduckgo_search import ddg + keywords = 'google' results = ddg(keywords, region='wt-wt', safesearch='Moderate', time='y', max_results=2) print(results) @@ -98,10 +100,12 @@ ddg_images(keywords, region='wt-wt', safesearch='Moderate', time=None, size=None ``` ### Example ```python +from duckduckgo_search import ddg_images + keywords = 'world' -results = ddg_images(keywords='world', region='br-pt', safesearch='Off', time='Year', size='Wallpaper', - color='Green', type_image='Photo',layout='Square', license_image='Public', max_results=500) -print(results) +r = ddg_images(keywords='world', region='br-pt', safesearch='Off', time='Year', size='Wallpaper', + color='Green', type_image='Photo',layout='Square', license_image='Public', max_results=500) +print(r) ``` ```python [