Yandex Images Crawler
allows you to download images from Yandex Images automatically.
Unlike most other projects, this package allows you to download images according to certain filters. For example, you can download images of a specified size or similar images.
You can use the yandex_images_crawler/download.py
script or install the package via pip
pip install yandex-images-crawler
C:\Users\suborofu> yandex-images-crawler --help
usage: yandex-images-crawler [-h] [--links LINK1,...] [--links-file FILE] [--size WxH] [--count N]
[--dir DIR] [--prev-dir DIR]
Yandex Images Crawler
options:
-h, --help show this help message and exit
--links LINK1,... Full links to image sets for download. Links should be separated by commas. Each
link should lead to an open preview of the image.
--links-file FILE Text file with full links to image sets for download. Links should be separated by
newlines. Each link should lead to an open preview of the image.
--size WxH Minimum size of images to download. Width an height should be separated by 'x'.
--count N Required count of images to download. A message appears if the desired number of
images are downloaded.
--dir DIR Directory for new images.
--prev-dir DIR Directory of previously loaded images. Program skips the loading of already loaded
images in another directory. Useful for re-downloading.
To get correct links, follow the steps below:
- Open Yandex Images.
- Search for images you need.
- Set the search parameters:
- Specify size, orientation, type or color.
- Provide a site URL.
- Find similar images.
- Open the first image preview.
- Copy a link in the browser (example).