简介
通过非官方notebooklm-py库实现Google NotebookLM的完整程序化访问,支持批量操作、多格式导出及自动化研究流程,适合需要高效管理大量文档与多媒体内容的研究者。
原始描述
Integrate Google NotebookLM capabilities into your workflow via the unofficial notebooklm-py library. Use when you need to: create/manage notebooks, import s...
通过你的 Agent 添加
安装目录:notebooklm-integration/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心功能
NotebookLM Integration Skill 基于非官方 Python 库 notebooklm-py,为用户提供了 Google NotebookLM 的完整 API 封装能力,突破了官方 Web 界面的功能限制。
主要能力覆盖
基础管理:创建、列举、重命名、删除笔记本,支持分享权限与访问级别控制。
多源导入:URL、YouTube 视频、PDF、文本文件、Google Drive 文档等均可一键导入,支持批量操作。
智能交互:基于自定义人设(persona)的问答对话,可设定专业领域专家角色以获得精准回答。
自动化研究:内置 Web 研究代理和 Drive 研究代理,支持深度/快速两种模式,自动检索并导入相关资源。
多媒体生成:
- 音频概述(4种格式 × 3种时长 × 50+语言,输出 MP3/MP4)
- 视频概述(3种格式 + 9种视觉风格,输出 MP4)
- 幻灯片(详细/演示者模式,PDF/PPTX)
- 信息图(3种比例 × 3种细节级别,PNG)
- 测验与闪卡(JSON/Markdown/HTML)
批量与导出:支持多格式批量下载,可导出至 Google Docs/Sheets。
显著优点
- 功能超集:填补了官方 Web UI 缺乏的批量处理、自动化流程、自定义导出格式等能力
- 双模接口:同时提供 Python API 和 CLI,兼顾开发集成与脚本自动化场景
- 研究闭环:从信息检索、导入、分析到多形态内容生成,形成完整工作流
- 高度可定制:人设系统让输出风格精准匹配专业场景
潜在局限与风险
类别
具体说明
稳定性风险
依赖未公开的 Google 内部 API,存在随时变更或失效的可能
认证依赖
需通过浏览器 OAuth 流程登录 Google 账号,无法纯 headless 运行
配额限制
未明确披露 rate limit 细节,高频调用易触发限流
官方背书缺失
非 Google 官方维护,长期支持与兼容性无保障
Workspace 权限
部分功能需特定 Google Workspace 权限
适合人群
- 学术研究者:需要批量处理文献、生成多语言播客或幻灯片
- 内容创作者:希望将研究材料快速转化为音频、视频或信息图
- 知识管理重度用户:构建个人/团队知识库并自动化更新
- 开发者/自动化工程师:将 NotebookLM 嵌入更复杂的数据管道
使用建议
| 类别 | 具体说明 |
|---|---|
| 稳定性风险 | 依赖未公开的 Google 内部 API,存在随时变更或失效的可能 |
| 认证依赖 | 需通过浏览器 OAuth 流程登录 Google 账号,无法纯 headless 运行 |
| 配额限制 | 未明确披露 rate limit 细节,高频调用易触发限流 |
| 官方背书缺失 | 非 Google 官方维护,长期支持与兼容性无保障 |
| Workspace 权限 | 部分功能需特定 Google Workspace 权限 |
适合人群
- 学术研究者:需要批量处理文献、生成多语言播客或幻灯片
- 内容创作者:希望将研究材料快速转化为音频、视频或信息图
- 知识管理重度用户:构建个人/团队知识库并自动化更新
- 开发者/自动化工程师:将 NotebookLM 嵌入更复杂的数据管道
使用建议
鉴于 API 的非官方性质,建议生产环境实施指数退避重试、错误降级策略,并关注上游仓库更新。对于关键业务场景,建议保留原始数据源备份,避免单一依赖该工具链。
技能正文
name: notebooklm-integration
description: "Integrate Google NotebookLM capabilities into your workflow via the unofficial notebooklm-py library. Use when you need to: create/manage notebooks, import sources (URLs, PDFs, YouTube, etc.), run research queries, generate audio/video overviews, create slide decks/infographics/quizzes/flashcards, or download generated artifacts. Provides programmatic access to NotebookLM features not exposed in the web UI."
NotebookLM Integration Skill
This skill enables you to leverage the full power of Google NotebookLM through the unofficial notebooklm-py Python library. It provides programmatic access to features that aren't available in the web UI, including batch operations, custom format exports, and advanced automation capabilities.
When to Use This Skill
Use this skill when you need to:
- Create, list, rename, or delete NotebookLM notebooks
- Import various source types (URLs, YouTube videos, PDFs, text files, Google Drive, etc.)
- Ask questions and chat with your notebooks using custom personas
- Run web and Drive research agents with auto-import capabilities
- Generate Audio Overviews (podcasts) in multiple formats and languages
- Create Video Overviews with different visual styles
- Generate Slide Decks (PDF/PPTX) and Infographics (PNG)
- Create Quizzes and Flashcards in multiple formats (JSON, Markdown, HTML)
- Download all generated artifacts locally or export to Google Docs/Sheets
- Share notebooks with specific permissions and view level controls
Quick Start
Installation
First, ensure you have the notebooklm-py library installed:
pip install notebooklm-py
Basic Usage Patterns
Python API
from notebooklm import NotebookLMClient
# Initialize client
client = NotebookLMClient()
# Create a new notebook
notebook = client.create_notebook("My Research Project")
# Add sources
notebook.add_source(url="https://example.com/research-paper.pdf")
notebook.add_source(youtube_url="https://youtube.com/watch?v=abc123")
notebook.add_source(file_path="./documents/report.txt")
# Ask questions
response = notebook.ask("What are the main findings in these sources?")
print(response.text)
# Generate audio overview
audio = notebook.generate_audio_overview(
format="deep-dive",
length="medium",
language="en"
)
audio.save("./outputs/podcast.mp3")
CLI Usage
# Create notebook
notebooklm notebook create "My Research"
# Add sources
notebooklm notebook add-source "My Research" --url https://example.com/paper.pdf
notebooklm notebook add-source "My Research" --youtube https://youtube.com/watch?v=abc123
# Ask questions
notebooklm notebook ask "My Research" "Summarize the key points"
# Generate content
notebooklm notebook audio "My Research" --format deep-dive --length medium
notebooklm notebook video "My Research" --style cinematic
notebooklm notebook slide "My Research" --format detailed
# Download artifacts
notebooklm notebook download "My Research" --format mp3 --output ./podcasts/
Advanced Features
Research Automation
# Run web research with auto-import
research_notebook = client.research_web(
query="latest developments in quantum computing",
max_sources=10,
mode="deep" # or "fast"
)
# Run Drive research
drive_notebook = client.research_drive(
folder_id="your-drive-folder-id",
query="machine learning papers"
)
Batch Operations
# Import multiple sources at once
sources = [
{"type": "url", "value": "https://example1.com"},
{"type": "youtube", "value": "https://youtube.com/watch?v=..."},
{"type": "file", "value": "./document.pdf"}
]
notebook.add_sources(sources)
# Generate multiple content types
formats = ["mp3", "mp4", "pdf", "png"]
for fmt in formats:
notebook.download_artifacts(format=fmt, output_dir=f"./outputs/{fmt}")
Custom Personas
# Set a custom persona for more focused responses
notebook.set_persona(
"You are a technical expert specializing in machine learning. "
"Provide detailed, accurate explanations with code examples when relevant."
)
Output Formats
Audio Overview
- Formats: deep-dive, brief, critique, debate
- Lengths: short, medium, long
- Languages: 50+ supported
- Output: MP3/MP4
Video Overview
- Formats: explainer, brief, cinematic
- Styles: 9 visual styles plus cinematic-video alias
- Output: MP4
Slide Deck
- Formats: detailed, presenter
- Output: PDF, PPTX
Infographic
- Orientations: 3 (portrait, square, landscape)
- Detail levels: 3 (low, medium, high)
- Output: PNG
Quiz & Flashcards
- Configurable quantity and difficulty
- Output: JSON, Markdown, HTML
Best Practices
- Error Handling: The library uses undocumented Google APIs that may change - implement retry logic and fallback mechanisms
- Rate Limits: Be mindful of usage quotas to avoid throttling
- Cleanup: Temporary files are cleaned up automatically, but manage your output directories
- Authentication: Uses your Google credentials - ensure you're logged in via browser auth flow
- Organization: Create engagement-specific notebooks for different projects
Troubleshooting
- If APIs break, check the Troubleshooting guide in the notebooklm-py repo
- For authentication issues, re-run the login process
- Rate limit errors require reducing request frequency or implementing exponential backoff
- Some features may require specific Google Workspace permissions
Related Skills
ai-agent-development - For building agents that utilize NotebookLM capabilities
audio-transcriber - For processing generated audio content
video-frames - For extracting frames from video overviews
app-builder - For creating full applications around NotebookLM workflows
# Create notebook
notebooklm notebook create "My Research"
# Add sources
notebooklm notebook add-source "My Research" --url https://example.com/paper.pdf
notebooklm notebook add-source "My Research" --youtube https://youtube.com/watch?v=abc123
# Ask questions
notebooklm notebook ask "My Research" "Summarize the key points"
# Generate content
notebooklm notebook audio "My Research" --format deep-dive --length medium
notebooklm notebook video "My Research" --style cinematic
notebooklm notebook slide "My Research" --format detailed
# Download artifacts
notebooklm notebook download "My Research" --format mp3 --output ./podcasts/
Research Automation
# Run web research with auto-import
research_notebook = client.research_web(
query="latest developments in quantum computing",
max_sources=10,
mode="deep" # or "fast"
)
# Run Drive research
drive_notebook = client.research_drive(
folder_id="your-drive-folder-id",
query="machine learning papers"
)
# Import multiple sources at once
sources = [
{"type": "url", "value": "https://example1.com"},
{"type": "youtube", "value": "https://youtube.com/watch?v=..."},
{"type": "file", "value": "./document.pdf"}
]
notebook.add_sources(sources)
# Generate multiple content types
formats = ["mp3", "mp4", "pdf", "png"]
for fmt in formats:
notebook.download_artifacts(format=fmt, output_dir=f"./outputs/{fmt}")
Custom Personas
# Set a custom persona for more focused responses
notebook.set_persona(
"You are a technical expert specializing in machine learning. "
"Provide detailed, accurate explanations with code examples when relevant."
)
Output Formats
Audio Overview
- Formats: deep-dive, brief, critique, debate
- Lengths: short, medium, long
- Languages: 50+ supported
- Output: MP3/MP4
Video Overview
- Formats: explainer, brief, cinematic
- Styles: 9 visual styles plus cinematic-video alias
- Output: MP4
Slide Deck
- Formats: detailed, presenter
- Output: PDF, PPTX
Infographic
- Orientations: 3 (portrait, square, landscape)
- Detail levels: 3 (low, medium, high)
- Output: PNG
Quiz & Flashcards
- Configurable quantity and difficulty
- Output: JSON, Markdown, HTML
Best Practices
- Error Handling: The library uses undocumented Google APIs that may change - implement retry logic and fallback mechanisms
- Rate Limits: Be mindful of usage quotas to avoid throttling
- Cleanup: Temporary files are cleaned up automatically, but manage your output directories
- Authentication: Uses your Google credentials - ensure you're logged in via browser auth flow
- Organization: Create engagement-specific notebooks for different projects
Troubleshooting
- If APIs break, check the Troubleshooting guide in the notebooklm-py repo
- For authentication issues, re-run the login process
- Rate limit errors require reducing request frequency or implementing exponential backoff
- Some features may require specific Google Workspace permissions
Related Skills
ai-agent-development - For building agents that utilize NotebookLM capabilities
audio-transcriber - For processing generated audio content
video-frames - For extracting frames from video overviews
app-builder - For creating full applications around NotebookLM workflows
# Set a custom persona for more focused responses
notebook.set_persona(
"You are a technical expert specializing in machine learning. "
"Provide detailed, accurate explanations with code examples when relevant."
)
Audio Overview
- Formats: explainer, brief, cinematic
- Styles: 9 visual styles plus cinematic-video alias
- Output: MP4
Slide Deck
- Formats: detailed, presenter
- Output: PDF, PPTX
Infographic
- Orientations: 3 (portrait, square, landscape)
- Detail levels: 3 (low, medium, high)
- Output: PNG
Quiz & Flashcards
- Configurable quantity and difficulty
- Output: JSON, Markdown, HTML
Best Practices
- Error Handling: The library uses undocumented Google APIs that may change - implement retry logic and fallback mechanisms
- Rate Limits: Be mindful of usage quotas to avoid throttling
- Cleanup: Temporary files are cleaned up automatically, but manage your output directories
- Authentication: Uses your Google credentials - ensure you're logged in via browser auth flow
- Organization: Create engagement-specific notebooks for different projects
Troubleshooting
- If APIs break, check the Troubleshooting guide in the notebooklm-py repo
- For authentication issues, re-run the login process
- Rate limit errors require reducing request frequency or implementing exponential backoff
- Some features may require specific Google Workspace permissions
Related Skills
ai-agent-development - For building agents that utilize NotebookLM capabilities
audio-transcriber - For processing generated audio content
video-frames - For extracting frames from video overviews
app-builder - For creating full applications around NotebookLM workflows
- Orientations: 3 (portrait, square, landscape)
- Detail levels: 3 (low, medium, high)
- Output: PNG
Quiz & Flashcards
- Configurable quantity and difficulty
- Output: JSON, Markdown, HTML
Best Practices
- Error Handling: The library uses undocumented Google APIs that may change - implement retry logic and fallback mechanisms
- Rate Limits: Be mindful of usage quotas to avoid throttling
- Cleanup: Temporary files are cleaned up automatically, but manage your output directories
- Authentication: Uses your Google credentials - ensure you're logged in via browser auth flow
- Organization: Create engagement-specific notebooks for different projects
Troubleshooting
- If APIs break, check the Troubleshooting guide in the notebooklm-py repo
- For authentication issues, re-run the login process
- Rate limit errors require reducing request frequency or implementing exponential backoff
- Some features may require specific Google Workspace permissions
Related Skills
ai-agent-development - For building agents that utilize NotebookLM capabilities
audio-transcriber - For processing generated audio content
video-frames - For extracting frames from video overviews
app-builder - For creating full applications around NotebookLM workflows
- Error Handling: The library uses undocumented Google APIs that may change - implement retry logic and fallback mechanisms
- Rate Limits: Be mindful of usage quotas to avoid throttling
- Cleanup: Temporary files are cleaned up automatically, but manage your output directories
- Authentication: Uses your Google credentials - ensure you're logged in via browser auth flow
- Organization: Create engagement-specific notebooks for different projects
Troubleshooting
- If APIs break, check the Troubleshooting guide in the notebooklm-py repo
- For authentication issues, re-run the login process
- Rate limit errors require reducing request frequency or implementing exponential backoff
- Some features may require specific Google Workspace permissions
Related Skills
ai-agent-development - For building agents that utilize NotebookLM capabilities
audio-transcriber - For processing generated audio content
video-frames - For extracting frames from video overviews
app-builder - For creating full applications around NotebookLM workflows
ai-agent-development- For building agents that utilize NotebookLM capabilitiesaudio-transcriber- For processing generated audio contentvideo-frames- For extracting frames from video overviewsapp-builder- For creating full applications around NotebookLM workflows
Bet, Boss. This skill puts the full power of NotebookLM at your fingertips. What notebook shall we create first? 😉
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。