Understand the NotebookLM hybrid authentication architecture
masterThe skill uses a hybrid approach to bypass a known limitation in Python's Playwright API where session cookies (cookies without an Expires attribute) are not saved to the user_data_dir profile.
The Hybrid Strategy:
- Persistent Browser Profile (
user_data_dir): Maintains consistent browser fingerprinting, cache, and persistent cookies. - Manual Cookie Injection (
state.json): Explicitly loads session cookies into the browser context at runtime to prevent authentication failures.
File Structure for Authentication Data:
Located in ~/.claude/skills/notebooklm/data/:
auth_info.json: Metadata about authentication.browser_state/state.json: Contains cookies and localStorage for manual injection.browser_state/browser_profile/: The Chrome user profile containing fingerprinting and cache data.