From ee474958bd4665d16a44d141d4131028a379d96c Mon Sep 17 00:00:00 2001 From: sandy1709 <58665444+sandy1709@users.noreply.github.com> Date: Wed, 31 Jan 2024 01:33:32 +0530 Subject: [PATCH] fix img for spacing words --- userbot/helpers/google_image_download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userbot/helpers/google_image_download.py b/userbot/helpers/google_image_download.py index 9184eb0fd7..733bcb10ea 100644 --- a/userbot/helpers/google_image_download.py +++ b/userbot/helpers/google_image_download.py @@ -930,7 +930,7 @@ def build_search_url( elif specific_site: url = ( "https://www.google.com/search?q=" - + quote(search_term.encode("utf-8")) + + quote(search_term.replace(" ","-").encode("utf-8")) + "&as_sitesearch=" + specific_site + "&espv=2&biw=1366&bih=667&site=webhp&source=lnms&tbm=isch" @@ -940,7 +940,7 @@ def build_search_url( else: url = ( "https://www.google.com/search?q=" - + quote(search_term.encode("utf-8")) + + quote(search_term.replace(" ","-").encode("utf-8")) + "&espv=2&biw=1366&bih=667&site=webhp&source=lnms&tbm=isch" + params + "&sa=X&ei=XosDVaCXD8TasATItgE&ved=0CAcQ_AUoAg"