This project is a Python script that allows you to retrieve information about a YouTube playlist. It utilizes web scraping techniques to fetch the necessary data from the YouTube website and provides options to save the data in different formats.
-
Clone the repository:
git clone https://github.com/tserediani/youtube_playlist.git
-
Change into the project directory:
cd youtube_playlist
-
Create a virtual environment (optional but recommended):
python -m venv env
-
Activate the virtual environment: For Windows:
env\Scripts\activate
For Unix or Linux:
source env/bin/activate
-
Use the package manager pip to install required dependencies.
pip install -r requirements.txt
- Modify the necessary constants and configurations in constants.py to match your requirements.
- Run the main script:
The script will start scraping the youtube webstie and extract playlist information of given BASE_URL. The data will be written to desired FROMAT [XLSX/CSV] in the current directory.
python main.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License