Skip to main content

A small package for scrapping images from google

Project description

easy_scrap

A simple Python package for scrapping images from Google Image Search

Installation

The package is available for pip installation

pip install easy_scrap

Usage

The main class is GoogleImageScrapper, which takes query as argument, searches for image links and downloads them to a separate folder. Folders for saving the images will be created on the runtime.

A basic example of usage

from easy_scrap import GoogleImageScrapper

query = "fruits"
save_folder_name = "fruit"
n_images = 100

# parse Google Image Search html page for image links
scrapper = GoogleImageScrapper(query=query,
                               save_folder_name=save_folder_name,
                               n_images=n_images)

# download and save images
scrapper.download_all_images()

TODOs

  • Add option to parse queries from the shell
  • Add other search systems
  • Try asynchronous download for speed boost
  • Handle issue when first 3 downloaded images are some Google icons

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

easy_scrap-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

easy_scrap-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file easy_scrap-0.1.0.tar.gz.

File metadata

  • Download URL: easy_scrap-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for easy_scrap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 edb7eae161380c1dace778419521c249fc809b299967cc02e5ea064f893e8539
MD5 4789cbac1ef17374b049ebe2caee417a
BLAKE2b-256 6719ef7e5508f6872bc997e6d535453b603f09d1296a12416b1ac2e0cba87fea

See more details on using hashes here.

File details

Details for the file easy_scrap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: easy_scrap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for easy_scrap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 094723993e9f6edc33ee592e8b795a7f794ddd9b5747467e420a34c3b91f9cb2
MD5 e408582f9100c4032021f027f3dbb308
BLAKE2b-256 69810d6138717324e3aee8992ac3d82c0ee1fec51066954accac1304f0d32a8e

See more details on using hashes here.

Supported by

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