NotebookLM Python

Active
GitHub Python MIT

Description

Unofficial Python API and agentic skill for Google NotebookLM. Full programmatic access to NotebookLM features including capabilities the web UI doesn't expose, via Python, CLI, and AI agents like Claude Code, Codex, and OpenClaw.

Key Features

  • Full programmatic access to Google NotebookLM including features not exposed in the web UI
  • Content generation for Audio Overviews, Videos, Slide Decks, Quizzes, Flashcards, Infographics, and Mind Maps
  • Batch downloads of all generated artifacts in multiple formats (MP3, MP4, PDF, PNG, CSV, JSON, Markdown)
  • CLI, Python API, and AI agent integration supporting Claude Code, Codex, and OpenClaw
  • Multi-source import from URLs, YouTube, Google Drive, PDFs, and pasted text with web/Drive research agents
  • Programmatic sharing and permission management without the NotebookLM UI

Use Cases

💡 Research automation with bulk source import and programmatic insight extraction
💡 Building AI agent tools that leverage NotebookLM's document understanding capabilities
💡 Automated content generation pipelines for podcasts, videos, and study materials
💡 Batch processing and export of NotebookLM artifacts for archival or integration
💡 CI/CD integration for automated knowledge base updates from document sources

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (19.1k stars)
  • Permissive open-source license (MIT)
  • Responsive to issues, low backlog

Categories

Quick Start

Install with `pip install "notebooklm-py[browser]"`, run `playwright install chromium`, authenticate via `notebooklm login`, create a notebook with `notebooklm create "My Research"`, add sources, then chat or generate content with `notebooklm ask` and `notebooklm generate`.

Related Projects

GPT4All

77.4k · C++
Stale B

Run Local LLMs on Any Device. Open-source and available for commercial use. Provides fully offline local inference and chat for AI agents.

pythonllmagent +3
  • · Fully offline local inference - No API calls or GPU required, run LLMs privately on everyday laptops and desktops
  • · Cross-platform desktop app - Native installers for Windows, macOS, and Linux, download and run immediately
  • · Python SDK integration - Wraps llama.cpp via gpt4all Python package, load models and inference in a few lines of code

Langchain-Chatchat

38.6k · Python
Stale B

A local knowledge base RAG and Agent application platform built on Langchain with support for ChatGLM, Qwen, Llama and other LLMs, offering conversation, knowledge base management, and agent capabilities.

ragllmpython +3
  • · Local knowledge base QA — Document loading, text splitting, vectorization and semantic retrieval via Langchain with BM25+KNN hybrid search
  • · Multi-framework model inference — Supports Xinference, Ollama, FastChat, LocalAI for GLM-4, Qwen2, Llama3 and more
  • · Agent tool calling — Optimized for ChatGLM3/Qwen with auto tool selection, single tool parameter parsing, and multimodal image chat