{"id":15486491,"url":"https://github.com/marshalx/yandex2spotify","last_synced_at":"2025-04-07T07:18:26.902Z","repository":{"id":37853782,"uuid":"279848379","full_name":"MarshalX/yandex2spotify","owner":"MarshalX","description":"Simple Python script that allow to import music from Yandex.Music to Spotify","archived":false,"fork":false,"pushed_at":"2024-06-07T11:04:59.000Z","size":56,"stargazers_count":228,"open_issues_count":2,"forks_count":24,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-30T04:50:24.971Z","etag":null,"topics":["python","spotify","yandex-music"],"latest_commit_sha":null,"homepage":"https://yandex-music.rtfd.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarshalX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-15T11:18:59.000Z","updated_at":"2024-10-11T21:52:47.000Z","dependencies_parsed_at":"2024-01-23T21:26:04.178Z","dependency_job_id":null,"html_url":"https://github.com/MarshalX/yandex2spotify","commit_stats":null,"previous_names":["marshalx/yandex2spotify","lemonpaul/yandex2spotify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshalX%2Fyandex2spotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshalX%2Fyandex2spotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshalX%2Fyandex2spotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshalX%2Fyandex2spotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarshalX","download_url":"https://codeload.github.com/MarshalX/yandex2spotify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608160,"owners_count":20965953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","spotify","yandex-music"],"created_at":"2024-10-02T06:08:37.823Z","updated_at":"2025-04-07T07:18:26.883Z","avatar_url":"https://github.com/MarshalX.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yandex2spotify\n\nA simple Python script that allows to import favorite tracks, playlists, albums, and artists from Yandex.Music to Spotify\n\n## Installation\n\nRequires Python 3.8 or higher.\n\n```bash\npip3 install -r requirements.txt\n```\n\n## Usage\n\n0) [Register a dummy Spotify OAuth application](https://developer.spotify.com/dashboard) and **add `https://open.spotify.com` as a callback URI** in its settings.\n\n1) Obtain a Yandex.Music OAuth token.[^1]\n\n2) Run the script using Client ID and Client Secret copied from your app's Spotify dashboard:\n```bash\npython3 importer.py --id \u003cspotify_client_id\u003e --secret \u003cspotify_client_secret\u003e -u \u003cspotify_username\u003e -t \u003cyandex_token\u003e\n```\n\n3) If you don't want to import some items (likes, playlists, albums, artists) you can exclude them by specifying the `-i/--ignore` argument, for example:\n```bash\npython3 importer.py --id \u003cspotify_client_id\u003e --secret \u003cspotify_client_secret\u003e -u \u003cspotify_username\u003e -t \u003cyandex_token\u003e -i playlists albums artists\n```\n\n4) After launch, script will open the web browser with authorization dialog. After finishing authorization, you need to copy resulting URL, close browser tab and paste that URL after `Enter the URL you were redirected to:`\n\n5) If authorization succeed - you will see log of import process.\n\nJSON import is also available. Use `--json-path` or `-j` to specify path to JSON file in format described below.\n```\n[\n\t{\n\t\t\"artist\": \"Artist Name\",\n\t\t\"track\": \"Track Name\"\n\t},\n\t{\n\t\t\"artist\": \"Artist Name\",\n\t\t\"track\": \"Track Name\"\n\t},\n\t...\n]\n```\n\n[^1]: Since it's impossible to register an OAuth application with Yandex.Music access scope, you have to [reuse the token from music.yandex.ru itself](https://github.com/MarshalX/yandex-music-api/discussions/513).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshalx%2Fyandex2spotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarshalx%2Fyandex2spotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshalx%2Fyandex2spotify/lists"}