尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Find the shortest chain of collaborations linking any two music artists, like the Oracle of Bacon (Six Degrees of Kevin Bacon), but for music.
Live at oracleofmusic.app: currently covers the top 5,000 Spotify artists and everyone they've collaborated with.
Built with: Python · Flask · SQLAlchemy · PostgreSQL · Docker · Gunicorn · Nginx · vanilla JS/HTML/CSS · MusicBrainz · Spotify Web API
flowchart LR
A[MusicBrainz dump] --> B[(PostgreSQL)]
B --> C[Adjacency list]
C --> D[BFS]
D --> E[Spotify Web API]
E --> F[HTML/CSS Path]
Follow deploy_database/instructions.txt to start PostgreSQL in Docker and load the MusicBrainz data dump into it.
Create a .env file in the repo root:
| Variable | Description |
|---|---|
DATABASE_URL | SQLAlchemy URL for the MusicBrainz database, e.g. postgresql+psycopg://postgres:<password>@localhost:5432/musicbrainz |
SPOTIFY_CLIENT_ID | Spotify app client ID |
SPOTIFY_CLIENT_SECRET | Spotify app client secret |
ARTIST_NAMES_FILE_PATH | Text file with one artist name per line, most important first |
ARTISTS_TO_LOAD | How many names to read from that file. The app finds Paths between these artists and everyone they've collaborated with. The live site uses the top 5,000 Spotify artists. |
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd app
gunicorn app:app # or: flask --app app run
The first start builds the collaboration graph and caches it in the database. Later starts reuse the cache.
The tests don't need a database or Spotify credentials:
pytest