This Python script downloads videos from Pexels and shows a progress bar for each video using the tqdm library.
- Python 3.x
requests
librarytqdm
library- Pexels API key
- Clone this repository to your local machine or download the ZIP file and extract it.
- Install the required libraries by running
pip install -r requirements.txt
. - Replace
PEXELS_API
variable with your own API key from Pexels.
- Open a terminal and navigate to the directory where the script is saved.
- Run the command
python pexels_video_downloader.py
. - The script will download the videos and show a progress bar for each video in the terminal.
- The downloaded videos will be saved in a new folder called
pexels_video
.
- The script will download the first 100 videos that match the search query. If you want to download more or less videos, change the
results_per_page
parameter in theapi.search_videos
method. - The progress bar is shown using the
tqdm
library. If you don't want to see the progress bar, remove thetqdm
code block in the script. - This script is provided as-is and is not guaranteed to work in all situations. Use at your own risk.
This project is licensed under the MIT License - see the LICENSE.md file for details.