Play a random album from the Flow State newsletter collection — perfect music for focused work.
# Clone the repo
git clone https://github.com/cyphalle/flowstate-cli.git
cd flowstate-cli
# Install dependencies
pip install -r requirements.txt
playwright install chromium
# Build the album database (takes ~45 min, but can be interrupted/resumed)
python scraper.py
# Add to your shell
echo "alias flowstate=\"$(pwd)/flowstate\"" >> ~/.zshrc
source ~/.zshrcflowstateThat's it. A random album opens in Spotify.
flowstate-updateThis fetches new articles from the newsletter and adds them to your local database. Progress is saved, so you can interrupt and resume anytime.
🎵 Mighty Vertebrate
from: Anna Butterss
- The scraper fetches all free articles from Flow State's sitemap
- It extracts Spotify album links from each article
- The CLI picks one at random and opens it in Spotify
- Python 3.10+
- Spotify desktop app
- macOS, Linux, or Windows
MIT