There was an error while loading. Please reload this page.
1 parent 4b141d6 commit 836b6e2Copy full SHA for 836b6e2
tests/test_example.py
@@ -32,11 +32,13 @@ def setUp(self):
32
def test_search_google_images(self):
33
client = GoogleSearchResults({"q": "coffe", "tbm": "isch"})
34
for image_result in client.get_json()['images_results']:
35
- link = image_result["original"]
36
try:
37
- print("link: " + link)
+ link = image_result["original"]
+ print("link is found: " + link)
38
+ # uncomment the line below to down the original image
39
# wget.download(link, '.')
40
except:
41
+ print("link is not found.")
42
pass
43
# https://github.com/serpapi/showcase-serpapi-tensorflow-keras-image-training/blob/master/fetch.py
44
0 commit comments