{"id":34063474,"url":"https://github.com/inktrap/soma-songs","last_synced_at":"2026-04-06T02:02:38.086Z","repository":{"id":190801217,"uuid":"683381600","full_name":"inktrap/soma-songs","owner":"inktrap","description":"Save songs from https://somafm.com as JSON. See  somafm-json for results https://github.com/inktrap/somafm-json","archived":false,"fork":false,"pushed_at":"2023-08-26T14:11:22.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T03:27:17.518Z","etag":null,"topics":["json","music","scraper","somafm"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/soma-songs/","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/inktrap.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}},"created_at":"2023-08-26T11:44:48.000Z","updated_at":"2023-08-26T14:26:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6c50740-b269-4f17-a792-0a3f33845362","html_url":"https://github.com/inktrap/soma-songs","commit_stats":null,"previous_names":["inktrap/soma-songs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/inktrap/soma-songs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inktrap%2Fsoma-songs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inktrap%2Fsoma-songs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inktrap%2Fsoma-songs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inktrap%2Fsoma-songs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inktrap","download_url":"https://codeload.github.com/inktrap/soma-songs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inktrap%2Fsoma-songs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["json","music","scraper","somafm"],"created_at":"2025-12-14T05:24:25.820Z","updated_at":"2026-04-06T02:02:38.079Z","avatar_url":"https://github.com/inktrap.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soma Songs\n\n[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![PyPI: Python Version](https://img.shields.io/pypi/pyversions/soma-songs)\n\nSave songs from \u003chttps://somafm.com\u003e as JSON.\n\n\n## How does it work?\n\nMost somafm radiostations publish their tracklist. F.e. the police `scanner`-channel doesn't, while [def con radio](https://somafm.com/defcon/songhistory.html) does. But this overview only includes the last hour(s) and is not easily machine-readable.\n\nSo why not archive this for all the channels, all the time, clean up the data a little bit and make it more useable?\n\n- results are stored in a `tinydb`, well, two, actually, these are just JSON files\n- the timestamp also includes a date and has a timezone annotation. Btw., if you want to get into the details: \u003chttps://somafm.com\u003e is based in San Francisco, the IANA time zone identifier is America/Los_Angeles. Currently they use PDT (Pacific Daylight Time), which is UTC-7. PST (Pacific Standard Time) would be UTC-8.\n- the somafm amazon links are not relative anymore and are also included to support \u003chttps://somafm.com\u003e\n\n\n# How do you use/run this?\n\nWell, you don't have to :) because I already created inktrap/somafm-json which contains the output.\n\nBut you can, by:\n\n```\npipx install somafm-songs\n```\n\nIf you call `somafm-songs` you'll see that `~/somafm-json/meta.json` contains the channel meta data and `~/somafm-json/music.json` contains tracks/songs.\n\nIf you want to keep your results in git and push them to a remote you have to turn that directory into a git repository with a remote and create a cron-job which does (and is allowed to do) the git commit/push spiel. I haven't tested this yet, but a cronjob like this could work:\n\n```\n30 * * * * /path/to/soma-songs -q \u0026\u0026 cd ~/somafm-json \u0026\u0026 git commit -am $(date) \u0026\u0026 git push\n```\n\nThanks to somafm and to all the amazing DJ(ane)s :)\n\n\n# What can you do with this?\n\nYou get a nice archive of great radio channels, what else do you want? Well, you could:\n\n- train your own music recommendation tool for each channel, just for fun \u003chttps://github.com/mattmurray/music_recommender\u003e\n- match albums/artists with musicbrainz-identifiers to find more info\n- look for overlap/similarity of channels\n- create your own rankings (per channel/artist/genre/year/…)\n- you could check for each channel how many artists/albums/songs are in your `beets` library (maybe adjust for popularity?!)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finktrap%2Fsoma-songs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finktrap%2Fsoma-songs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finktrap%2Fsoma-songs/lists"}