notebooklm-py  by teng-lin

Python API and CLI for Google NotebookLM automation

Created 2 weeks ago

New!

1,547 stars

Top 26.7% on SourcePulse

GitHubView on GitHub
Project Summary

notebooklm-py provides an unofficial Python API and command-line interface (CLI) for Google NotebookLM, enabling programmatic automation of research workflows, content generation, and AI agent integration. It targets researchers, developers, and power users seeking to leverage NotebookLM's capabilities beyond its web interface, facilitating repeatable research pipelines and automated content creation from diverse sources.

How It Works

This library interfaces with NotebookLM via undocumented Google APIs, providing a flexible architecture accessible through a Python API, a CLI, and specialized Agent Skills for platforms like Claude Code. Its advantage lies in enabling automation and custom integrations where official APIs are unavailable. The approach supports asynchronous workflows and integrates with various LLM agent frameworks.

Quick Start & Requirements

  • Installation: pip install notebooklm-py or pip install "notebooklm-py[browser]" for browser login.
  • Prerequisites: playwright install chromium is required for initial browser-based authentication.
  • Setup: Requires an initial browser-based login (notebooklm login).
  • Documentation: CLI Reference, Python API, Configuration, Troubleshooting available.

Highlighted Details

  • Supports diverse source ingestion: URLs, PDFs, YouTube, Google Drive, and text.
  • Enables programmatic content generation: audio podcasts, videos, slides, quizzes, flashcards, reports, infographics, and mind maps.
  • Facilitates research automation via web and Drive agents with auto-import capabilities.
  • Offers AI agent integration, including Claude Code skills for natural language automation.

Maintenance & Community

This is a community project hosted on GitHub (https://github.com/teng-lin/notebooklm-py). Specific details on active contributors, community channels (like Discord/Slack), or a public roadmap are not detailed in the README.

Licensing & Compatibility

Licensed under the MIT License. While permissive for commercial use, its unofficial nature and reliance on undocumented APIs present significant adoption risks.

Limitations & Caveats

This is an unofficial library utilizing undocumented Google APIs, subject to change or breakage without notice. Users should proceed with caution ("Use at Your Own Risk"), as API stability is not guaranteed, and heavy usage may incur rate limits. It is best suited for prototypes, research, and personal projects rather than mission-critical production systems.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
84
Issues (30d)
17
Star History
1,566 stars in the last 20 days

Explore Similar Projects

Feedback? Help us improve.