notebooklm-skill 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Claude World
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,425 @@
1
+ Metadata-Version: 2.4
2
+ Name: notebooklm-skill
3
+ Version: 1.2.0
4
+ Summary: NotebookLM research automation — CLI, MCP server, and Claude Code Skill
5
+ Author-email: Claude World <hello@claude-world.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Claude World
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/claude-world/notebooklm-skill
29
+ Project-URL: Repository, https://github.com/claude-world/notebooklm-skill
30
+ Project-URL: Issues, https://github.com/claude-world/notebooklm-skill/issues
31
+ Keywords: notebooklm,mcp,claude,research,ai
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Programming Language :: Python :: 3
35
+ Classifier: Programming Language :: Python :: 3.10
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Programming Language :: Python :: 3.13
39
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
40
+ Requires-Python: >=3.10
41
+ Description-Content-Type: text/markdown
42
+ License-File: LICENSE
43
+ Requires-Dist: notebooklm-py>=0.3.4
44
+ Requires-Dist: playwright>=1.40.0
45
+ Requires-Dist: fastmcp>=0.1.0
46
+ Requires-Dist: python-dotenv>=1.0.0
47
+ Requires-Dist: httpx>=0.25.0
48
+ Requires-Dist: feedparser>=6.0
49
+ Provides-Extra: dev
50
+ Requires-Dist: pytest>=8.0; extra == "dev"
51
+ Requires-Dist: pytest-asyncio>=1.0; extra == "dev"
52
+ Requires-Dist: ruff>=0.4; extra == "dev"
53
+ Dynamic: license-file
54
+
55
+ # notebooklm-skill
56
+
57
+ > NotebookLM does the research, Claude writes the content.
58
+
59
+ The only tool that connects trending topic discovery → NotebookLM deep research → AI content creation → multi-platform publishing. Works as a Claude Code Skill or standalone MCP Server.
60
+
61
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
62
+
63
+ **[繁體中文版 README](README.zh-TW.md)**
64
+
65
+ ---
66
+
67
+ ## Demo
68
+
69
+ | Language | YouTube | Slides |
70
+ |----------|---------|--------|
71
+ | English | [Watch](https://youtu.be/q1kj_OccaVE) | 6 pages, auto-generated |
72
+ | 繁體中文 | [Watch](https://youtu.be/6M3K4sxahdE) | 5 pages, auto-generated |
73
+
74
+ All slides, podcasts, and videos were generated by NotebookLM using this tool.
75
+
76
+ ---
77
+
78
+ ## What is this?
79
+
80
+ **notebooklm-skill** bridges NotebookLM's research capabilities with Claude's content generation. Feed it URLs, PDFs, or trending topics — it creates a NotebookLM notebook, runs deep research queries, and hands structured findings to Claude for polished output: articles, social posts, newsletters, podcasts, or any format you need.
81
+
82
+ Built on [notebooklm-py](https://pypi.org/project/notebooklm-py/) v0.3.4 — pure async Python, no OAuth setup needed.
83
+
84
+ ```
85
+ Sources (URLs, PDFs) NotebookLM Claude Artifacts & Platforms
86
+ +-----------------+ +------------------+ +-----------------+ +----------------------+
87
+ | Web articles |--->| Create notebook |--->| Draft article |--->| Blog / CMS |
88
+ | Research papers | | Add sources | | Social posts | | Threads / X |
89
+ | YouTube videos | | Ask questions | | Newsletter | | Newsletter |
90
+ | Trending topics | | Extract insights | | Any format | | Any platform |
91
+ +-----------------+ +------------------+ +-----------------+ +----------------------+
92
+ Phase 1 Phase 2 Phase 3 Phase 4
93
+ |
94
+ v
95
+ +------------------+
96
+ | Generate artifacts|
97
+ | Audio (podcast) |
98
+ | Video |
99
+ | Slides |
100
+ | Report |
101
+ | Quiz |
102
+ | Flashcards |
103
+ | Mind map |
104
+ | Infographic |
105
+ | Data table |
106
+ | Study guide |
107
+ +------------------+
108
+ Phase 2b
109
+ ```
110
+
111
+ ## Quick Start
112
+
113
+ ```bash
114
+ # Option A: uvx (recommended — zero install)
115
+ uvx notebooklm-skill --help
116
+ uvx --from notebooklm-skill notebooklm-mcp # Start MCP server
117
+
118
+ # Option B: pip install from PyPI
119
+ pip install notebooklm-skill
120
+
121
+ # Option C: Install from source
122
+ git clone https://github.com/claude-world/notebooklm-skill.git
123
+ cd notebooklm-skill && pip install .
124
+
125
+ # Option D: One-line install (pip + Playwright + Claude Code Skill)
126
+ git clone https://github.com/claude-world/notebooklm-skill.git
127
+ cd notebooklm-skill && ./install.sh
128
+
129
+ # Authenticate with Google (one-time, opens browser)
130
+ python3 -m notebooklm login
131
+
132
+ # Use global commands
133
+ notebooklm-skill create --title "My Research" --sources https://example.com/article
134
+ notebooklm-skill ask --notebook "My Research" --query "What are the key findings?"
135
+ notebooklm-skill podcast --notebook "My Research" --lang en --output podcast.m4a
136
+ notebooklm-pipeline research-to-article --sources https://example.com --title "Topic"
137
+ notebooklm-mcp # Start MCP server (stdio mode)
138
+ ```
139
+
140
+ Or use scripts directly: `python scripts/notebooklm_client.py create ...`
141
+
142
+ See [docs/SETUP.md](docs/SETUP.md) for the full setup guide.
143
+
144
+ ## Authentication
145
+
146
+ notebooklm-py uses browser-based Google login (no OAuth Client ID needed):
147
+
148
+ | Step | Command | What happens |
149
+ |------|---------|-------------|
150
+ | **Login** | `python3 -m notebooklm login` | Opens Chromium, user logs into Google |
151
+ | **Session storage** | Automatic | Saved to `~/.notebooklm/storage_state.json` |
152
+ | **Subsequent use** | `NotebookLMClient.from_storage()` | Reads saved session, pure HTTP calls |
153
+ | **Verify** | `python scripts/auth_helper.py verify` | Loads client + calls `notebooks.list()` |
154
+ | **Clear** | `python scripts/auth_helper.py clear` | Removes `~/.notebooklm/` directory |
155
+
156
+ Session typically lasts weeks. Re-run `login` if you get authentication errors.
157
+
158
+ ## Two Ways to Use
159
+
160
+ | | **Claude Code Skill** | **MCP Server** |
161
+ |---|---|---|
162
+ | **Best for** | Claude Code users who want NotebookLM in their workflow | Any MCP-compatible client (Cursor, Gemini CLI, etc.) |
163
+ | **Setup** | Copy skill to `.claude/skills/` | Add server to MCP config |
164
+ | **Invocation** | Claude auto-detects when relevant | Tools appear in client tool list |
165
+ | **Config** | `SKILL.md` + `.env` | `.mcp.json` + `.env` |
166
+ | **Requirements** | Python 3.10+, notebooklm-py | Python 3.10+, notebooklm-py |
167
+
168
+ ## Features
169
+
170
+ | Feature | Description | Status |
171
+ |---|---|---|
172
+ | **Notebook CRUD** | Create, list, delete notebooks | Available |
173
+ | **Source ingestion** | Add URLs, PDFs, YouTube links, plain text | Available |
174
+ | **Research queries** | Ask questions against notebook sources with citations | Available |
175
+ | **Structured extraction** | Get key facts, arguments, timelines | Available |
176
+ | **Content generation** | Use research output as context for Claude | Available |
177
+ | **Batch operations** | Process multiple sources or queries at once | Available |
178
+ | **trend-pulse integration** | Auto-discover trending topics to research | Available |
179
+ | **threads-viral-agent integration** | Publish research-backed social posts | Available |
180
+
181
+ ### Artifact Generation (10 types)
182
+
183
+ | Artifact | Format | Description |
184
+ |---|---|---|
185
+ | **Audio** | M4A | AI-generated podcast discussion |
186
+ | **Video** | MP4 | Video summary with visuals |
187
+ | **Slides** | PDF / PPTX | Presentation deck |
188
+ | **Report** | Markdown | Comprehensive written report |
189
+ | **Quiz** | JSON / Markdown / HTML | Multiple-choice assessment questions |
190
+ | **Flashcards** | JSON / Markdown / HTML | Study flashcard deck |
191
+ | **Mind map** | JSON | Visual concept map |
192
+ | **Infographic** | PNG | Visual data summary |
193
+ | **Data table** | CSV | Structured data extraction |
194
+ | **Study guide** | Markdown | Structured learning material |
195
+
196
+ Most artifacts support language selection (e.g., `--lang zh-TW`). Exceptions: quiz, flashcards, mind-map.
197
+
198
+ > **Note**: NotebookLM returns audio in MPEG-4 (M4A) format, not MP3.
199
+
200
+ ## Architecture
201
+
202
+ ```
203
+ +---------------------------------------------------------------+
204
+ | notebooklm-skill |
205
+ | |
206
+ | +---------+ +--------------+ +----------+ +------------+ |
207
+ | | Phase 1 | | Phase 2 | | Phase 3 | | Phase 4 | |
208
+ | | Collect |->| Research |->| Generate |->| Publish | |
209
+ | +---------+ +--------------+ +----------+ +------------+ |
210
+ | | | | | |
211
+ | +--------+ +-------------+ +-----------+ +-----------+ |
212
+ | | URLs | | NotebookLM | | Claude | | Threads | |
213
+ | | PDFs | | (via | | Content | | Blog | |
214
+ | | RSS | | notebooklm | | Engine | | Email | |
215
+ | | Trends | | -py 0.3.4) | | | | CMS | |
216
+ | +--------+ | - notebooks | +-----------+ +-----------+ |
217
+ | | - sources | | |
218
+ | | - chat/ask | +-----------+ |
219
+ | | - artifacts | | Artifacts | |
220
+ | +-------------+ | audio | |
221
+ | | video | |
222
+ | | slides | |
223
+ | | report | |
224
+ | | quiz | |
225
+ | | flashcards| |
226
+ | | mind-map | |
227
+ | | infographic| |
228
+ | | data-table| |
229
+ | | study-guide| |
230
+ | +-----------+ |
231
+ | |
232
+ | +-----------------------------------------------------------+ |
233
+ | | Interfaces | |
234
+ | | +-- scripts/ CLI tools (notebooklm-py direct) | |
235
+ | | +-- mcp_server/ MCP protocol server | |
236
+ | | +-- SKILL.md Claude Code skill definition | |
237
+ | +-----------------------------------------------------------+ |
238
+ +---------------------------------------------------------------+
239
+ ^ ^
240
+ | |
241
+ +-----------+ +-----------+
242
+ |trend-pulse| |threads- |
243
+ |(optional) | |viral-agent|
244
+ +-----------+ |(optional) |
245
+ +-----------+
246
+ ```
247
+
248
+ ## Usage Examples
249
+
250
+ ### 1. Research to Article
251
+
252
+ ```bash
253
+ python scripts/pipeline.py research-to-article \
254
+ --sources "https://arxiv.org/abs/2401.00001" \
255
+ "https://blog.example.com/ai-agents" \
256
+ --title "AI Agent Survey"
257
+ ```
258
+
259
+ ### 2. Research to Social Posts
260
+
261
+ ```bash
262
+ python scripts/pipeline.py research-to-social \
263
+ --sources "https://example.com/ai-news" \
264
+ --platform threads \
265
+ --title "AI News This Week"
266
+ ```
267
+
268
+ ### 3. Trending Topics to Content
269
+
270
+ ```bash
271
+ python scripts/pipeline.py trend-to-content \
272
+ --geo TW \
273
+ --count 5 \
274
+ --platform threads
275
+ ```
276
+
277
+ ### 4. RSS Batch Digest
278
+
279
+ ```bash
280
+ python scripts/pipeline.py batch-digest \
281
+ --rss "https://example.com/feed.xml" \
282
+ --title "Weekly AI Digest"
283
+ ```
284
+
285
+ ### 5. Generate All Artifacts
286
+
287
+ ```bash
288
+ python scripts/pipeline.py generate-all \
289
+ --sources "https://example.com/article" \
290
+ --title "Research" \
291
+ --output-dir ./output \
292
+ --language zh-TW
293
+ ```
294
+
295
+ ### 6. Slides + Podcast → YouTube Video
296
+
297
+ Combine NotebookLM-generated slides and podcast into a YouTube-ready video:
298
+
299
+ ```bash
300
+ # Generate slides and podcast
301
+ python scripts/notebooklm_client.py generate --notebook "Research" --type slides
302
+ python scripts/notebooklm_client.py podcast --notebook "Research" --lang en --output podcast.m4a
303
+ python scripts/notebooklm_client.py download --notebook "Research" --type slides --output slides.pdf
304
+
305
+ # Convert PDF to PNG + compose video
306
+ ./scripts/make_video.sh slides.pdf podcast.m4a output.mp4
307
+ ```
308
+
309
+ ## Pipeline Workflows
310
+
311
+ | Workflow | Input | Output | Steps |
312
+ |---|---|---|---|
313
+ | `research-to-article` | URLs, text | Article draft JSON | Create notebook → 5 research questions → article draft |
314
+ | `research-to-social` | URLs, text | Social post draft | Create notebook → summarize → platform-specific post |
315
+ | `trend-to-content` | Geo, count | Content per trend | Fetch trends → create notebooks → research → draft |
316
+ | `batch-digest` | RSS URL | Newsletter digest | Fetch RSS → create notebook → digest + Q&A |
317
+ | `generate-all` | URLs, text | Audio, video, PDF, etc. | Create notebook → generate all artifacts → download |
318
+
319
+ ## MCP Server Setup
320
+
321
+ Add to your project's `.mcp.json`:
322
+
323
+ ```json
324
+ {
325
+ "mcpServers": {
326
+ "notebooklm": {
327
+ "command": "uvx",
328
+ "args": ["--from", "notebooklm-skill", "notebooklm-mcp"]
329
+ }
330
+ }
331
+ }
332
+ ```
333
+
334
+ Or if you installed via `pip install notebooklm-skill`:
335
+
336
+ ```json
337
+ {
338
+ "mcpServers": {
339
+ "notebooklm": {
340
+ "command": "notebooklm-mcp"
341
+ }
342
+ }
343
+ }
344
+ ```
345
+
346
+ Works with Claude Code, Cursor, Gemini CLI, and any MCP-compatible client.
347
+
348
+ ## Claude Code Skill Setup
349
+
350
+ ```bash
351
+ # Option A: Symlink (auto-updates with git pull)
352
+ ./install.sh
353
+
354
+ # Option B: Manual copy
355
+ mkdir -p .claude/skills/notebooklm
356
+ cp /path/to/notebooklm-skill/SKILL.md .claude/skills/notebooklm/
357
+ cp /path/to/notebooklm-skill/scripts/*.py .claude/skills/notebooklm/scripts/
358
+ cp /path/to/notebooklm-skill/requirements.txt .claude/skills/notebooklm/
359
+
360
+ # Authenticate (one-time)
361
+ python3 -m notebooklm login
362
+ ```
363
+
364
+ Claude will automatically detect the skill when you ask about research, NotebookLM, or content creation.
365
+
366
+ ## API Reference
367
+
368
+ ### CLI Commands (11)
369
+
370
+ | Command | Description |
371
+ |---|---|
372
+ | `create` | Create a notebook with URL/text sources |
373
+ | `list` | List all notebooks |
374
+ | `delete` | Delete a notebook |
375
+ | `add-source` | Add a source (URL, text, or file) to existing notebook |
376
+ | `ask` | Ask a research question (returns answer + citations) |
377
+ | `summarize` | Get notebook summary |
378
+ | `generate` | Generate an artifact (audio, video, slides, etc.) |
379
+ | `download` | Download a generated artifact |
380
+ | `research` | Run deep web research |
381
+ | `podcast` | Shortcut for `generate --type audio` (auto-downloads) |
382
+ | `qa` | Shortcut for `generate --type quiz` |
383
+
384
+ ### MCP Tools (13)
385
+
386
+ | Tool | Description |
387
+ |---|---|
388
+ | `nlm_create_notebook` | Create notebook with sources |
389
+ | `nlm_list` | List all notebooks |
390
+ | `nlm_delete` | Delete a notebook |
391
+ | `nlm_add_source` | Add source to existing notebook |
392
+ | `nlm_ask` | Ask question (returns answer + citations) |
393
+ | `nlm_summarize` | Get notebook summary |
394
+ | `nlm_generate` | Generate artifact (10 types) |
395
+ | `nlm_download` | Download generated artifact |
396
+ | `nlm_list_sources` | List sources in notebook |
397
+ | `nlm_list_artifacts` | List generated artifacts |
398
+ | `nlm_research` | Deep web research |
399
+ | `nlm_research_pipeline` | Full research pipeline |
400
+ | `nlm_trend_research` | Trend → research pipeline |
401
+
402
+ ## Integrations
403
+
404
+ - **[trend-pulse](https://github.com/claude-world/trend-pulse)** — Real-time trending topic discovery from 7 sources
405
+ - **[threads-viral-agent](https://github.com/claude-world/claude-world.com)** — Auto-publish research-backed social posts
406
+
407
+ ## Contributing
408
+
409
+ 1. Fork the repository
410
+ 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
411
+ 3. Commit your changes
412
+ 4. Push and open a Pull Request
413
+
414
+ ```bash
415
+ # Development setup
416
+ git clone https://github.com/claude-world/notebooklm-skill.git
417
+ cd notebooklm-skill
418
+ pip install -e .
419
+ python3 -m notebooklm login
420
+ python -m pytest tests/
421
+ ```
422
+
423
+ ## License
424
+
425
+ MIT License. See [LICENSE](LICENSE).