Tiny Swift CLI that uses macOS Accessibility (AX) to read the QQ Music Songs list and export len | song | author | alb to CSV.
- Reads visible rows from QQ Music via AX (no private APIs).
- Auto-scrolls and stops when the end is reached.
- Writes
qqmusic_songs.csv(UTF-8, quoted).
- macOS with Command Line Tools:
xcode-select --install - QQ Music for macOS (bundle id:
com.tencent.QQMusicMac) - Accessibility permission for Terminal and the compiled binary.
swiftc -O qq_ax_dump.swift -o qq_ax_dump- Open QQ Music → show the 歌曲 (Songs) list.
- System Settings → Privacy & Security → Accessibility:
- Enable Terminal (or iTerm).
- Add and enable ./qq_ax_dump.
Copy code
./qq_ax_dump
Console prints: len | song | author | albCSV saved as qqmusic_songs.csv in current directory.# Export_QQ_Music