Open livewithsjsj opened 2 years ago
ex)
Item no.: 3 --> Item name = Beaches Evaluating... Starting Download...
Unfortunately all 20 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter!
Errors: 0
Hi @livewithsjsj , This issue is a duplicate with issue #354
Have you tried the Joeclinton1's fork who can setup with the 2 commands in the first post of #298 ?
If you still have the issue with this fork, could you provide us additional information like I am unable to reproduce the issue :
Thanks in advance.
Hi @NicolasGrosjean
from google_images_download import google_images_download #importing the library response = google_images_download.googleimagesdownload() #class instantiation arguments = {"keywords":"Polar bears,baloons,Beaches","limit":20,"print_urls":True} #creating list of arguments paths = response.download(arguments) #passing the arguments to the function print(paths) #printing absolute paths of the downloaded images
Environment System I used GroomIDE, OS : Ubuntu 18.04 LTS Python 3.7.4 pip 20.2.4 Jupyter 4.6.3 Django 2.2.4 Flask 1.1.2 TensorFlow 2.3.1 Caffe 1.0.0 Spark 3.0.1
Version of python 3.7.4
and the result..
root@goorm:/workspace/crawlling-google-ima# python google-image-crowlling.py Item no.: 1 --> Item name = Polar bears Evaluating... Starting Download...
Unfortunately all 20 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter! Errors: 0
and i tryed to Joeclinton1's method but it didnt works
Hi @livewithsjsj ,
I tried again with a new conda environment with Python 3.7.4 on Ubuntu 18.04 LTS, and I have still no issue.
The only thing I see to try to help you is to compare the raw result you get to the mine.
Please use this version of google_images_download/google_images_download.py, it will export the raw results in raw_google_data/ directory if you replace the 3rd line of your script by
arguments = {"keywords":"Polar bears,baloons,Beaches","limit":20,"print_urls":True,"raw_google_data":True} #creating list of arguments
You can share me one of the 3 json file with website like https://jsonblob.com/
P.S : Before replacing google_images_download/google_images_download.py by my version, you can check with a diff, there is only something like that in diff.
I have the same problem. Did you resolve the issue?
Hi @NareshBisht @livewithsjsj ,
I had the same problem. Some step below fixed the issue in my case:
git clone https://github.com/Joeclinton1/google-images-download.git
cd google-images-download && python setup.py install
google-images-download/google_images_download
( module ) to my project.from google_images_download import google_images_download
and download works.'chromedriver': 'path/chromedriver'
argThis works in my case and I hope it will also help you.
Having this same issue, first time user of the module.. I followed two different examples and both returned the same error..
I have been getting this issue as well both on my bare metal Windows PC as well as the latest available python container from docker hub... docker pull python:latest docker run python /bin/bash -c "pip install google_images_download; googleimagesdownload --keywords 'Polar bears, baloons, Beaches' --limit 20"
Running that I get the same error.
When I tried Joeclinton1's on my bare metal PC it gave me the same error. when I updated my docker test from above to use Joeclinton1's it worked. docker run python /bin/bash -c "git clone https://github.com/Joeclinton1/google-images-download.git; cd google-images-download; python setup.py install; googleimagesdownload --keywords 'Polar bears, baloons, Beaches' --limit 20"
I had the same issues, when using pip, instead go into the terminal and use the following commands,
git clone https://github.com/Joeclinton1/google-images-download.git
cd google-images-download
python setup.py install
googleimagesdownload --keywords 'Polar bears, baloons, Beaches' --limit 20`
when I run the command line googleimagesdownload --keywords "Polar bears, baloons, Beaches" --limit 20, it just doesn't work...