Skip to main content

A command-line tool to scrape and download images from Yandex search results

Project description

Yandex Image Scraper

A command-line tool to scrape and download images from Yandex search results.

Features

  • Search for images on Yandex
  • Scrape image URLs from search results
  • Auto-scrolling to load more images
  • Auto-clicks "Show more" button when available
  • High-performance parallel downloading (50 images at once)
  • Customize search parameters (content type, size, orientation)
  • Save image URLs to text file

How It Works

  1. The script uses Playwright via Camoufox to open a browser window to Yandex Images
  2. It searches for your query and extracts image URLs from the results
  3. Automatically scrolls to load more results and clicks "Show more" when needed
  4. Downloads all found images in parallel (up to 50 at once) for maximum speed
  5. Saves images to a folder named after your search query

Usage

# Install from PyPI
pip install yandex-image-scraper

# Run the tool
yandex-image-scraper

# Follow the prompts to:
# - Enter your search query
# - Specify how many images to download
# - Select content type (photo, clipart, etc.)
# - Choose image size and orientation
# - Enable/disable image downloads and URL saving

Options

When running the tool, you can customize:

  • Search query: What to search for on Yandex Images
  • Number of images: How many images to find and download
  • Content type: photo, clipart, lineart, face, demotivator, or none
  • Image size: large, medium, small, or none
  • Orientation: horizontal, vertical, square, or none

Requirements

  • Python >= 3.8

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yandex_image_scraper-0.8.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yandex_image_scraper-0.8.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file yandex_image_scraper-0.8.0.tar.gz.

File metadata

  • Download URL: yandex_image_scraper-0.8.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for yandex_image_scraper-0.8.0.tar.gz
Algorithm Hash digest
SHA256 f7de9872ade9b240623cc840eef123fe04dfd04fbba9358612140787412beae7
MD5 9119249f1ff485142138f917a2e035fc
BLAKE2b-256 e37047620c79354312814684675c360d50b8592d3937be7a89fd837cccac08b2

See more details on using hashes here.

File details

Details for the file yandex_image_scraper-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yandex_image_scraper-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8b5f4aeb0b4eb435442e0b0db2fde0eb823dee010a0916f023511b9292a574
MD5 04428a70d157f73a7f2578b88c623849
BLAKE2b-256 0ad65271e68f5d244235fd2c3df810daa11da3d84f5b20974457f0e1a8641c46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page