Skip to content

Commit 0d2bf8f

Browse files
committed
minor changes after merging #213
doc updates for #213 minor other docs updates - linking doc pages doc update for #140
1 parent 9c3cb54 commit 0d2bf8f

File tree

10 files changed

+55
-8
lines changed

10 files changed

+55
-8
lines changed

docs/_static/.DS_Store

6 KB
Binary file not shown.

docs/arguments.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Input Arguments
33
===============
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
7+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
8+
59
+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+
610
| Argument | Short hand | Description |
711
+===================+=============+===============================================================================================================================+
@@ -235,6 +239,10 @@ Input Arguments
235239
| | | |
236240
| | | This argument will override all the other print arguments (like print_urls, print_size, etc.) |
237241
+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+
242+
| ignore_urls | iu | Skip downloading of images whose urls contain certain strings such as wikipedia.org |
243+
| | | |
244+
| | | This argument takes a delimited set of values e.g. wikipedia.org,wikimedia.org |
245+
+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+
238246
| help | h | show the help message regarding the usage of the above arguments |
239247
+-------------------+-------------+-------------------------------------------------------------------------------------------------------------------------------+
240248

docs/examples.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Examples
33
========
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
7+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
8+
9+
Link to `Input arguments or parameters <https://google-images-download.readthedocs.io/en/latest/arguments.html>`__
10+
511
Config File Format
612
==================
713

@@ -31,8 +37,8 @@ download images based on arguments passed.
3137
}
3238
3339
34-
Command line examples
35-
=====================
40+
Code sample - Importing the library
41+
===================================
3642

3743
- If you are calling this library from another python file, below is the sample code
3844

@@ -46,6 +52,10 @@ Command line examples
4652
paths = response.download(arguments) #passing the arguments to the function
4753
print(paths) #printing absolute paths of the downloaded images
4854
55+
56+
Command line examples
57+
=====================
58+
4959
- If you are passing arguments from a config file, simply pass the config_file argument with name of your JSON file
5060

5161
.. code-block:: bash

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Google Images Download
33
======================
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
57
.. index:: Summary
68

79
Summary

docs/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Installation
33
============
44

5+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
6+
57
You can use **one of the below methods** to download and use this repository.
68

79
Install using pip

docs/structure.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Workflow
33
========
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
7+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
8+
59
Below diagram represents the algorithm logic to download images.
610

711
.. figure:: http://www.zseries.in/flow-chart.png

docs/troubleshooting.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Troubleshooting Errors/Issues
33
=============================
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
7+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
8+
59
SSL Errors
610
==========
711

@@ -75,3 +79,16 @@ For **All the operating systems** you will have to use '--chromedriver' or '-cd'
7579
chromedriver that you have downloaded in your machine.
7680

7781
If on any rare occasion the chromedriver does not work for you, try downgrading it to a lower version.
82+
83+
84+
urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
85+
==============================================
86+
87+
`Reference to this issue <https://github.com/hardikvasa/google-images-download/issues/140>`__
88+
89+
Use the below command to install the SSL certificate on your machine.
90+
91+
.. code-block:: bash
92+
93+
cd /Applications/Python\ 3.7/
94+
./Install\ Certificates.command

docs/usage.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Usage
33
=====
44

5+
Link to `GitHub repo <https://github.com/hardikvasa/google-images-download>`__
6+
7+
Link to `Documentation Homepage <https://google-images-download.readthedocs.io/en/latest/index.html>`__
8+
59
Using the library from Command Line Interface
610
=============================================
711

google_images_download/google_images_download.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def create_directories(self,main_directory, dir_name,thumbnail,thumbnail_only):
507507
return
508508

509509

510-
# Download Images
510+
# Download Image thumbnails
511511
def download_image_thumbnail(self,image_url,main_directory,dir_name,return_image_name,print_urls,socket_timeout,print_size,no_download,save_source,img_src,ignore_urls):
512512
if print_urls or no_download:
513513
print("Image URL: " + image_url)
@@ -576,14 +576,14 @@ def download_image_thumbnail(self,image_url,main_directory,dir_name,return_image
576576

577577
# Download Images
578578
def download_image(self,image_url,image_format,main_directory,dir_name,count,print_urls,socket_timeout,prefix,print_size,no_numbering,no_download,save_source,img_src,silent_mode,thumbnail_only,format,ignore_urls):
579+
if not silent_mode:
580+
if print_urls or no_download:
581+
print("Image URL: " + image_url)
579582
if ignore_urls:
580583
if any(url in image_url for url in ignore_urls.split(',')):
581-
return "fail","Image ignored",None,None
584+
return "fail", "Image ignored due to 'ignore url' parameter", None, image_url
582585
if thumbnail_only:
583586
return "success", "Skipping image download...", str(image_url[(image_url.rfind('/')) + 1:]), image_url
584-
if not silent_mode:
585-
if print_urls or no_download:
586-
print("Image URL: " + image_url)
587587
if no_download:
588588
return "success","Printed url without downloading",None,image_url
589589
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from codecs import open
33
from os import path
44

5-
__version__ = '2.7.0'
5+
__version__ = '2.8.0'
66

77
here = path.abspath(path.dirname(__file__))
88

0 commit comments

Comments
 (0)