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"