Skip to content

Commit 6efc092

Browse files
authored
added troubleshooting guide and corrected errors
1 parent b130089 commit 6efc092

File tree

1 file changed

+50
-3
lines changed

1 file changed

+50
-3
lines changed

README.rst

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,34 @@ Installation
2727

2828
$ pip install google_images_download
2929

30-
**Manually:**
30+
**Manually using CLI:**
3131

3232
::
3333

3434
$ git clone https://github.com/hardikvasa/google-images-download.git
3535
$ cd google-images-download && sudo python setup.py install
3636

37+
**Manually using UI:**
38+
39+
Go to the `repo on github <https://github.com/hardikvasa/google-images-download>`__ ==> Click on 'Clone or Download' ==> Click on 'Download ZIP' and save it on your local disk.
40+
3741
Usage
3842
-----
3943

44+
If installed via pip or using CLI, use the following command:
45+
4046
::
4147

4248
$ googleimagesdownload [Arguments...]
4349

50+
If downloaded via the UI, unzip the file downloaded, go to the 'google_images_download' directory and use one of the below commands:
51+
52+
::
53+
54+
$ python3 google_images_download.py [Arguments...]
55+
OR
56+
$ python google_images_download.py [Arguments...]
57+
4458
Arguments
4559
~~~~~~~~~
4660

@@ -184,7 +198,7 @@ Examples
184198

185199
- To download images which are similar to the image in the image URL that you provided (Reverse Image search).
186200

187-
``python3 pr.py -si <image url> -l 10``
201+
``googleimagesdownload -si <image url> -l 10``
188202

189203
- To download images from specific website or domain name for a given keyword
190204

@@ -195,13 +209,46 @@ Examples
195209

196210
--------------
197211

198-
SSL Errors
212+
Troubleshooting
199213
----------
200214

215+
**## SSL Errors**
216+
201217
If you do see SSL errors on Mac for Python 3,
202218
please go to Finder —> Applications —> Python 3 —> Click on the ‘Install Certificates.command’
203219
and run the file.
204220

221+
**## googleimagesdownload: command not found**
222+
223+
While using the above commands, if you get ``Error: -bash: googleimagesdownload: command not found`` then you have to set the correct path variable.
224+
225+
To get the details of the repo, run the following command:
226+
::
227+
$ pip show -f google_images_download
228+
229+
you will get the result like this:
230+
::
231+
Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
232+
Files:
233+
../../../bin/googleimagesdownload
234+
235+
together they make: ``/Library/Frameworks/Python.framework/Versions/2.7/bin`` which you need add it to the path:
236+
::
237+
$ export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin
238+
239+
240+
**## [Errno 13] Permission denied creating directory 'downloads'**
241+
242+
When you run the command, it downloads the images in the current directory (the directory from where you are running the command). If you get permission denied error for creating the `downloads directory`, then move to a directory in which you have the write permission and then run the command again.
243+
244+
245+
**## Permission denied while installing the library**
246+
247+
On MAC and Linux, when you get permission denied when installing the library using pip, try using shifting to sudo user and run the command.
248+
::
249+
$ sudo pip install google_images_download
250+
251+
205252
Contribute
206253
----------
207254

0 commit comments

Comments
 (0)