Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md to include Python-tk installation instructions and clarify YouTube Music login steps #174

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ This is a set of scripts for copying "liked" songs and playlists from Spotify to

### Preparation/Pre-Conditions

1. **Install Python and Git** (you may already have them installed).
1. **Install Python, Git, and Python-tk (required for GUI)** (you may already have them installed).

On Mac:

- Install [Homebrew](https://brew.sh/)
- python-tk will install the latest version of python

```bash
brew install python-tk
brew install git
```

2. **Uninstall the pip package from the original repository** (if you previously installed `linsomniac/spotify_to_ytmusic`):

On Windows:
Expand Down Expand Up @@ -56,14 +67,17 @@ pip install ytmusicapi tk

To use the YouTube Music API, you need to generate valid credentials. Follow these steps:

1. **Log in to YouTube Music**: Open YouTube Music in Firefox and ensure you are logged in.
1. **Log in to YouTube Music**: Open YouTube Music in Firefox, ensure you are logged in, and click Explore.
2. **Open the Inspection Tool**: Press `F12` or right-click and select _Inspect_ to open the browser's inspection tool.
3. **Access the Network Tab**: Navigate to the Network tab and filter by `/browse`.
4. **Select a Request**: Click one of the requests under the filtered results and locate the _Request Headers_ section.
5. **Toggle RAW View**: Click the RAW toggle button to view the headers in raw format.
6. **Copy Headers**: Right-click, choose _Select All_, and copy the content.
7. **Paste into `raw_headers.txt`**: Open the `raw_headers.txt` file located in the main directory of this project and paste the copied content into it.

> [!TIP]
> If using Chrome instead of Firefox, select Developer Tools > Network > Headers after filtering for browse and copy the entire Request Headers section. The `ytmusic_credentials.py` script will still work.

**Run the Script**:

Execute the following command to generate the credentials file:
Expand Down