Skip to content

Commit db5f814

Browse files
committed
Fix certificate verify failed in image_grapper.py
1 parent 3fea288 commit db5f814

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Google_Image_Downloader/image_grapper.py

+4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
from urllib.request import urlopen, Request
1111

1212
import requests
13+
import ssl
1314
from bs4 import BeautifulSoup
1415
from create_dir import create_directory
1516

17+
18+
ssl._create_default_https_context = ssl._create_unverified_context
19+
1620
GOOGLE_IMAGE = \
1721
'https://www.google.com/search?site=&tbm=isch&source=hp&biw=1873&bih=990&'
1822
WALLPAPERS_KRAFT = 'https://wallpaperscraft.com/search/keywords?'

0 commit comments

Comments
 (0)