Own your tracks
NOTE: the project is still under development and it can only load ~50 tracks in one go after that you should solve captcha in the browser and update cookie
- Python 3.7
- uv
git clone https://github.com/lamphee/ymusic-backup
- Open your favorite browser
- Navigate to music.yandex.ru and login into account
- Open devtools
- Copy Cookie header value
- Save cookies inside project root dir (e.g., cookies.txt)
- Open your playlist
- Press share button
- Copy link
- Create python venv:
uv venv # use --python to specify python version, if needed
- Activate your environmet:
Linux:
source .venv/bin/activate
Windows:
.\my_env\Scripts\Activate
- Install dependencies:
uv pip install .
uv sync
- Run main.py, specifying path to saved cookies and url of your playlist:
uv run src/main.py --cookies ./cookies.txt -p https://music.yandex.ru/users/$USER/playlists/1