notebooklm-py
An unofficial Python API and agent skill for Google's Gemini Notebook (formerly NotebookLM), giving programmatic access to research automation, content generation and file exports from Python, a CLI, or AI agents such as Claude Code and Codex.
notebooklm-py is an unofficial Python library and agent skill for Google's Gemini Notebook, the product formerly known as NotebookLM. It exposes capabilities the web interface does not, through Python, a command-line tool, and AI agents such as Claude Code, Codex and OpenClaw.
It supports bulk-importing sources such as URLs, PDFs, YouTube videos and Google Drive files, running web and Drive research queries with automatic import, and extracting insights programmatically to build repeatable research pipelines. It can also generate audio overviews, videos, slide decks, quizzes, flashcards, infographics, data tables, mind maps and study guides, and download the results as MP3, MP4, PDF, PNG, CSV, JSON or Markdown files, or export them to Google Docs and Sheets.
The library relies on undocumented Google APIs, is not affiliated with Google, and may break if those endpoints change; its authors recommend it for prototypes, research and personal projects rather than production use.