Reputation: 111
I'm crawling an image through Google Image downloader. The code that originally worked started to suddenly stop working How do we solve this problem? Code and error messages are as follows
from google_images_download import google_images_download
def ImageCrawling(keyword, dir):
response = google_images_download.googleimagesdownload()
arguments = {"keywords":keyword
,"limit":2
,"print_urls":True
,'output_directory':dir}
paths = response.download(arguments) #passing the arguments to the function
print(paths) #printing absolute paths of the downloaded images
ImageCrawling('dog','C:\\nuguya')
Upvotes: 7
Views: 4102
Reputation: 959
Try to run the py file from the Ubuntu terminal. It works fine. I think it's not working in Windows OS.
Upvotes: 0
Reputation: 1560
It seems google recently removed the rg_metadata
from the page, which is what google_images_download
was using to process the images from the raw_html.
As such it's broken.
Upvotes: 1