This Python script uses the Pexels API to search for images based on a user's query and download them to a local directory.
β’ Python 3.6 or higher β’ requests library β’ tqdm library β’ Pexels API key
β’ Clone the repository to your local machine. β’ Install the required dependencies using pip install requests tqdm. β’ Obtain a Pexels API key from the Pexels website. β’ Set the API_KEY variable in the main.py script to your API key.
β’ Run the main.py script using python main.py. β’ Enter a keyword to search for images. β’ The script will download up to 80 images (the maximum per page for the Pexels API) for the given keyword. β’ If there are more than 80 images for the given keyword, the script will download all of them.