https://github.com/moe131/playlist-downloader
Python script that fetches the songs of your Spotify playlist and downloads them from Youtube using Selenium and pytube libraries.
https://github.com/moe131/playlist-downloader
playlist-downloader python pytube selenium spotify-playlist youtube-downloader
Last synced: 2 months ago
JSON representation
Python script that fetches the songs of your Spotify playlist and downloads them from Youtube using Selenium and pytube libraries.
- Host: GitHub
- URL: https://github.com/moe131/playlist-downloader
- Owner: Moe131
- Created: 2024-07-06T07:33:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T21:16:06.000Z (almost 2 years ago)
- Last Synced: 2025-06-19T15:50:03.772Z (about 1 year ago)
- Topics: playlist-downloader, python, pytube, selenium, spotify-playlist, youtube-downloader
- Language: Python
- Homepage:
- Size: 12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify Playlist Song Downloader
This application allows you to download songs from a Spotify playlist by searching and downloading them from YouTube. It uses the Spotify API to fetch the playlist details and Selenium for navigating YouTube to download the songs using `pytube`.

## Prerequisites
Before running the script, ensure you have the following installed:
- Python 3.x
- Google Chrome
- ChromeDriver (compatible with your version of Google Chrome)
- Required Python libraries: `selenium`, `pytube3`, `python-dotenv`, `requests`
## Installation
1. Clone the repository:
```
git clone https://github.com/moe131/playlist-downloader.git
cd playlist-downloader
```
2. Install the required Python packages:
```
pip install -r requirements.txt
```
3. Set up your Spotify API credentials:
- Create a `.env` file in the root directory of your project.
- Add your Spotify API credentials to the `.env` file:
```
CLIENT_ID=your_spotify_client_id
CLIENT_SECRET=your_spotify_client_secret
```
4. Download and set up ChromeDriver:
- Download ChromeDriver from [here](https://sites.google.com/a/chromium.org/chromedriver/downloads).
- Place the ChromeDriver executable in the project directory or set its path in the code.
## Usage
1. Run the application:
```
python downloader.py
```
2. In the GUI:
- Enter the URL of the Spotify playlist you want to download.
- Click "Browse" to select the directory where you want to save the downloaded songs.
- Click "Start Download" to begin downloading songs.
### Note
Ensure that ChromeDriver is compatible with your installed version of Google Chrome. You can download the appropriate version from the [ChromeDriver download page](https://sites.google.com/a/chromium.org/chromedriver/downloads).
### Disclaimer
This script is intended for personal use only. Ensure you have the right to download and use the content you access. Respect copyright laws and the terms of service of the platforms you interact with.