Automate creation of multiple audio overviews in Google NotebookLM using Playwright...
Automates the creation of multiple audio overviews in Google NotebookLM with different prompts and configurations.
This skill uses Playwright to automate NotebookLM's browser interface for:
The automation handles the repetitive UI interactions, waiting for generation to complete, and downloading all outputs.
The automation follows these steps:
/home/claude/Create a JSON file with this structure:
{
"sources": [
"https://example.com/article1",
"https://example.com/page2"
],
"audio_overviews": [
{
"prompt": "Focus on technical concepts for developers",
"length": "longer"
},
{
"prompt": "Create executive summary of business impacts",
"length": "default"
}
]
}
sources: Array of website URLs to use as source material
audio_overviews: Array of audio overview configurations
"default" or "longer" (never use "shorter")See references/example_input.json for a complete example.
python scripts/generate_audio_overviews.py input.json
This runs with visible browser so you can monitor progress and handle Google authentication if needed.
python scripts/generate_audio_overviews.py input.json --headless
Run browser in headless mode (requires existing authentication).
python scripts/generate_audio_overviews.py input.json --timeout 900
Set custom timeout for audio generation (in seconds). Default is 600 seconds (10 minutes).
Install Playwright and dependencies:
pip install playwright
playwright install chromium
Audio files are downloaded to /home/claude/ with NotebookLM's default naming:
The script reports download success for each file and provides summary at completion.
Authentication Required
--headless flagSelectors Not Found
references/troubleshooting.md for selector update guidance--headless to observe actual UITimeout During Generation
--timeout flagSources Not Loading
For selector updates and detailed troubleshooting, read references/troubleshooting.md.