How 124dev/lafm works
LAFM is a CLI for collecting Spotify tracks and scrobbling saved lists to Last.fm. Its main workflow loads configuration, obtains proxies and authenticates services, then lets the user scrape an artist or playlist into songlist files, or choose a saved list to submit. The excerpt shows the menu orchestration and these domain stages, but omits some function bodies, including the track submission implementation; links to external APIs and file output are based on documented capabilities and visible calls.
Main entry points: scrobble.py Main menu · songlist Saved song lists
Components 14
CLI workflow
- Main menu
scrobble.py - Configuration
scrobble.py - Proxy retrieval
scrobble.py - Service checks
scrobble.py
Spotify extraction
- Artist scraper
scrobble.py - Playlist extractor
scrobble.py - Saved song lists
songlist
Last.fm scrobbling
- List selection
scrobble.py - Track file loader
scrobble.py - Track scrobbler
scrobble.py
Other components
- CLI user
- Spotify API
- Last.fm API
- ProxyScrape
Connections 20
- CLI user → Main menu: runs
README.md - Main menu → Configuration: loads
scrobble.py - Main menu → Proxy retrieval: fetches
scrobble.py - Proxy retrieval → ProxyScrape: requests proxies
scrobble.py - Main menu → Service checks: checks services
scrobble.py - Service checks → Spotify API: validates access
scrobble.py - Service checks → Last.fm API: authenticates
scrobble.py - Main menu → Artist scraper: dispatches
scrobble.py - Main menu → Playlist extractor: dispatches
scrobble.py - Artist scraper → Spotify API: searches catalog
scrobble.py - Playlist extractor → Spotify API: fetches tracks
scrobble.py - Artist scraper → Saved song lists: writes tracks
scrobble.py - Playlist extractor → Saved song lists: writes tracks
README.md - Main menu → List selection: dispatches
scrobble.py - List selection → Saved song lists: lists files
scrobble.py - List selection → Track file loader: selects file
scrobble.py - Track file loader → Saved song lists: reads tracks
scrobble.py - Track file loader → Track scrobbler: starts submissions
scrobble.py - Track scrobbler → Last.fm API: scrobbles tracks
README.md - Track scrobbler → ProxyScrape: rotates proxies
README.md