Skip to content

Use the Pexels API to search and dowload images πŸ”πŸ”πŸ”

Notifications You must be signed in to change notification settings

vitalikmag/site_parcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

site_parcer

This Python script uses the Pexels API to search for images based on a user's query and download them to a local directory.

Prerequisites

β€’ Python 3.6 or higher β€’ requests library β€’ tqdm library β€’ Pexels API key

Installation

β€’ 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.

Usage

β€’ 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.

About

Use the Pexels API to search and dowload images πŸ”πŸ”πŸ”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages