{"id":18308289,"url":"https://github.com/leveled-up/now-playing-list","last_synced_at":"2025-08-25T19:05:25.380Z","repository":{"id":215801872,"uuid":"561263384","full_name":"leveled-up/now-playing-list","owner":"leveled-up","description":"Extract all YouTube Music IDs/Links from the Google Pixel Now Playing databases","archived":false,"fork":false,"pushed_at":"2023-12-02T12:17:05.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T11:36:03.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leveled-up.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-03T10:11:07.000Z","updated_at":"2022-11-03T10:29:15.000Z","dependencies_parsed_at":"2024-01-06T17:39:35.804Z","dependency_job_id":null,"html_url":"https://github.com/leveled-up/now-playing-list","commit_stats":null,"previous_names":["leveled-up/now-playing-list"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leveled-up/now-playing-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leveled-up%2Fnow-playing-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leveled-up%2Fnow-playing-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leveled-up%2Fnow-playing-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leveled-up%2Fnow-playing-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leveled-up","download_url":"https://codeload.github.com/leveled-up/now-playing-list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leveled-up%2Fnow-playing-list/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272116857,"owners_count":24876268,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-05T16:07:33.941Z","updated_at":"2025-08-25T19:05:25.328Z","avatar_url":"https://github.com/leveled-up.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Now Playing Database Extractor\n\nThis shell script can be used to download the databases used by Google Pixel Now Playing feature to your local disk and extract all the YouTube Music IDs stored in the database using several simple grep commands. Beside GNU standard utilities and curl no other programs are required (e.g. no LevelDB-parser).\n\n## Usage\n\n```bash\n./main.sh  [-k] [COUNTRY_CODE] [MONTH_TO_FETCH]\n```\n\n**Attention**: Even without the `-k`-option, a full run of the program requires up to 4 GB of temporary disk space in the working directory.\n\n### Arguments\n\n- `-k` Keep old leveldb-files\n- `COUNTRY_CODE` Only download databases for this country\n- `MONTH_TO_FETCH` Manually set the month in YYYYMM format to download. Default is the latest database.\n\nThe program needs exactly these places of command line arguments.\n\n### Examples\n\nDownload US databases and don't keep old files (-k): \n\n```bash\n$ ./main.sh '' US\n```\n\nDownload all countries databases for 10/2022 and keep old database files:\n\n```bash\n$ ./main.sh -k '' 202210\n```\n\n### Output\n\nThe program will create a directory structure in its working dir. The files in curly braces will be automatically deleted after execution if `-k` is not supplied. Beware that keeping the files consumes a relevant amount of disk space.\n\n- YYYYMMDD-HHMMSS/ (Date of the database)\n  - CC/ (Country code)\n    - {CCxxxxxxxxxxxxxx.leveldb} (Downloaded database files)\n    - **song-ids.list** (The extracted YouTube Music IDs, one-per-line: can be used like this: `https://music.youtube.com/watch?v=YOUR_ID_HERE`)\n  - {files.list}\n  - {manifest.json}\n- {dates.list}\n- {list-YYYYMM.xml}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleveled-up%2Fnow-playing-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleveled-up%2Fnow-playing-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleveled-up%2Fnow-playing-list/lists"}