Skip to content

lamphee/ymusic-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Ymusic backup

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

Prerequisites

  • Python 3.7
  • uv

Usage

0) Clone the project

git clone https://github.com/lamphee/ymusic-backup

1) Browser

Cookies:

  • 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)

Playlist url:

  • Open your playlist
  • Press share button
  • Copy link

2) Terminal

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages