Image selector
Image selector can extract src attribute (URL) of an image.
If responsive image size configuration is present, the selector will attempt to extract
the url for the largest image available
Note! When selecting CSS selector for image selector all the images within the site are moved to the top. If this feature somehow breaks sites layout please report it as a bug.
Configuration options
- selector - CSS selector for the image element.
- multiple type - The way multiple extracted images should be handled.
- column count - the number of columns returned when multiple type is set to
Multiple Records in Multiple Columns
Use cases
See Text selector use cases.
Image downloader script
Image downloader script finds image urls scraped by Image Selector in a csv file and downloads them.
It will try to download images from all extracted image URLs.
web_scraper_order and web_scraper_start_url columns are
required in order for script to work. Images are renamed to
<web_scraper_order>_<selector_name>.ext.
Windows usage
- Download and install python 3.x from here: https://www.python.org/downloads/
- Download image downloader script from here: https://github.com/webscraperio/image-downloader/tags
- Scrape the target site and export data in CSV format
- Drag and drop the CSV file on top of the
image-downloader.py
macOS, Linux usage
- Install python if necessary through your package manager. Most likely you already have it pre-installed.
- Download image downloader script from here: https://github.com/webscraperio/image-downloader/tags
- Move
image-downloader.pytoDownloadsdirectory - Scrape the target site and export data in CSV format
- Save the CSV file in
Downloadsdirectory - Open
Terminalapplication. You should have one pre-installed - Change working to
Downloadsdirectory by typing:cd Downloads - Run image downloader script by typing:
python image-downloader.py scraped_data.csv

Multiple Type
A specific selector can find multiple items on a single site. To handle this a Multiple Type
is available when creating the selector. The selected type affects
how data is returned
First Record Only- returns only the first record extracted. Use when only one image expectedMultiple Records in Multiple Columns- returns multiple records split into up toColumn Countcolumns. Enables and Requires fillingColumn count(defaults to 5)Multiple Records in One Column- returns all extracted records in a single column joined by newline