Automate NotebookLM to create notebooks, import documents, and download audio summaries as MP3 files without opening a browser.
Export quiz answers from NotebookLM as structured JSON for use in your own study app or workflow.
Download slide decks from NotebookLM as editable PowerPoint files, a feature unavailable through the website.
Use the library as a skill file so an AI agent like Claude can create and query NotebookLM notebooks in natural language.
Requires a Google account sign-in via a browser popup on first run to authenticate the session.
notebooklm-py is an unofficial Python library that lets you control Google NotebookLM through code instead of through the browser. NotebookLM is a Google product that lets you upload documents, ask questions about them, and generate study materials like audio summaries, quizzes, and flashcards. This library gives developers and AI agents programmatic access to those features, including some that the NotebookLM website itself does not expose. The project is clear that it is a community effort, not affiliated with Google. It works by calling undocumented internal APIs, which means it could break without warning if Google changes its backend. The authors recommend it for prototypes, personal projects, and research rather than production systems that need guaranteed reliability. You can use the library in three ways: as a Python package you import in code, as a command-line tool you call from a terminal, or as a skill file that AI agents (such as Claude Code or Codex) can discover and use to control NotebookLM in natural language. The README specifically targets AI agents as the primary audience. On the feature side, the library covers creating and managing notebooks, importing sources from URLs, YouTube videos, Google Drive, PDFs, and other file types, running chat queries, and generating content. Content generation includes audio overviews in podcast format, video overviews, slide decks (downloadable as PDF or editable PowerPoint), infographics, quizzes, flashcards, reports, data tables, and mind maps. It can also download all of these locally in formats like MP3, MP4, JSON, Markdown, and CSV. Notably, several of the download and export features are not available through the NotebookLM website at all, such as exporting quiz answers as structured JSON, downloading slide decks as PowerPoint files, or extracting mind map data. Authentication works by opening a browser window for a Google sign-in, after which the session is saved for future use.
← teng-lin on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.