The script takes a csv with first names (sample input file), searches for images and returns links to the image. In particular, the script appends the following two columns:
image_url
- URL link to the imageimage_order
- Order of image in search results
To begin using the script, first install the requirements. Then run the downloaded script.
usage: google_image_search.py [-h] [-c COUNT] [-o OUTPUT] [--no-header]
[-r RETRY]
input
Google Image Search (Face type)
positional arguments:
input Input file name
optional arguments:
-h, --help show this help message and exit
-c COUNT, --count COUNT
Number of image per name
-o OUTPUT, --output OUTPUT
Output CSV file name
--no-header Output without header at the first row
-r RETRY, --retry RETRY
Number of retry if errors
python google_image_search.py sample_in.csv