You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using googleimagesdownload to get the URLs of images found on google.
I am using the CLI from within python and saving the printed URLs:
import subprocess
result = {'label': 'The Elements of Moral Philosophy', 'author': 'James Rachels'}
item_type = 'book'
out = subprocess.check_output(["googleimagesdownload", "--keywords", "\"%s %s %s\"" % (result['label'].replace(',',''), item_type, result['author']), "--print_urls", "-l", "1"])
url = out.decode('utf-8').split('\n')[4].replace('Image URL: ','')
This works fine in general, but sometimes I get some weird results such as: x-raw-image:///c2cd85e815606ceef9f9926580a481686218ff8f1979e26816d1ba45f9eedeaa
which do not even seem to be URLs, they do not point to any image.
Does anyone have a clue where these results come from?
Thanks.
ENrico
The text was updated successfully, but these errors were encountered:
@enricopal the above example you provided works as expected when i test it on my end (mac, python2/3). Do you see issue in the example provided? or do you see unexpected image result with a different keyword or limit? Basically i am not able to reproduce this issue on my end and additional info would help me find out if there is any edge case scenario here.
Hello,
I am using googleimagesdownload to get the URLs of images found on google.
I am using the CLI from within python and saving the printed URLs:
This works fine in general, but sometimes I get some weird results such as: x-raw-image:///c2cd85e815606ceef9f9926580a481686218ff8f1979e26816d1ba45f9eedeaa
which do not even seem to be URLs, they do not point to any image.
Does anyone have a clue where these results come from?
Thanks.
ENrico
The text was updated successfully, but these errors were encountered: