- Selenium WebDriver
- urllib.request
-
Debian GNU/Linux Bash
sudo apt install python3.10 && apt install python3.10-venv
-
Download the project
Debian GNU/Linux Bash
wget -O google-images-scraper-master.zip https://github.com/yussuf-codes/google-images-scraper/archive/master.zip sudo apt install unzip unzip google-images-scraper-master.zip
-
Navigate to source directory
cd ./google-images-scraper-master/src/
-
Create a virtual environment
Debian GNU/Linux Bash
python3.10 -m venv .venv
Windows PowerShell
python -m venv .venv
-
Activate the virtual environment
Debian GNU/Linux Bash
source ./.venv/bin/activate
Windows PowerShell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser .\.venv\Scripts\Activate.ps1
-
Install the requirements
pip install -r ./google_images_scraper/requirements.txt
Debian GNU/Linux Bash
python3.10 main.py -q <SEARCH_QUERY> -n <NUMBER_OF_IMAGES> -d <IMAGES_DIRECTORY>
Windows PowerShell
python main.py -q <SEARCH_QUERY> -n <NUMBER_OF_IMAGES> -d <IMAGES_DIRECTORY>
.
├── LICENSE
├── README.md
└── src
├── google-images-scraper
│ ├── __init__.py
│ ├── implementation.py
│ └── requirements.txt
└── main.py
Distributed under the MIT License. See LICENSE for more information.
Please ⭐️ this repository if this project helped you!