Skip to content

Provides a command interface to download images by query. Uses the web interface from Duck Duck Go to scrape image URLs.

License

Notifications You must be signed in to change notification settings

pixolution/image-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Want to scrape and download images for your own machine learning project?

Use image scraper to download images that you want from the web!

Heavily inspired by fast.ai download_images, forked from theojl6/image-scraper/

Run scrape-images.py to select what you want and download those images! Results sourced from Duck Duck Go search engine

Install

  • clone this repo
  • create a virtual environment
cd image-scraper
python3 -mvenv venv
  • enter virtual environment
source venv/bin/activate
  • install requirements
pip3 install --upgrade pip
pip3 install -r requirements.txt

Usage

  • search for images with a given keyword (e.g. fish)
python3 scrape-images.py
What do you want:
fish
Number of images?
100
  • the resulting folder with images
image-scraper
├── fishimgs
│  ├── 0.jpg
│  ├── 1.jpg
│  ├── 2.jpg
│  └── ...
├── screenshots
├── .gitignore
├── image-scraper.py
├── utils.py
├── LICENSE
└── README.md

MIT License

About

Provides a command interface to download images by query. Uses the web interface from Duck Duck Go to scrape image URLs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%