notebooklm-py
Installs and operates Google NotebookLM through a Python CLI and typed async API, covering notebooks, sources, grounded chat, research, and artifacts. Built for developers and AI agents such as Claude Code.
Fetches and extracts full article text from URLs, keeping headings, links and lists instead of summaries. Uses browser impersonation and cookies to get complete pages that plain HTTP tools often receive truncated.
Claude Code
$ npx -y skills add teng-lin/agent-fetch --agent claude-code
Codex
$ npx skills add teng-lin/agent-fetch -a codex
Cursor
$ npx skills add teng-lin/agent-fetch -a cursor
Gemini CLI
$ npx skills add teng-lin/agent-fetch -a gemini-cli
GitHub Copilot
$ npx skills add teng-lin/agent-fetch -a github-copilot
OpenCode
$ npx skills add teng-lin/agent-fetch -a opencode
Windsurf
$ npx skills add teng-lin/agent-fetch -a windsurf
Full-content web fetcher for AI agents and content workflows. Standard HTTP tools (curl, wget, or an agent's built-in web fetch) are often served truncated or different responses because servers inspect the client's network fingerprint. agent-fetch uses browser impersonation so servers respond as they would to a real browser, then runs multiple extraction strategies to pull the complete article — every paragraph, heading, and link. Also supports multi-page crawling, persistent cookies, and custom CSS selectors. Runs locally with no API keys or cloud dependencies.
Also useful for:
| Built-in agent fetch | Cloud extraction APIs | agent-fetch | |
|---|---|---|---|
| Content | Summary or truncation | Full (usually) | Full article text |
| Structure | Plain text blob | Markdown (varies) | Markdown with headings, links, lists |
| Runs locally | Yes | No | Yes |
| API key required | No | Yes | No |
| Extraction strategies | 1 (basic parse) | 1–2 | Multiple (Readability, JSON-LD, Next.js, RSC, WP API, text-density, CSS selectors) |
| Open source | N/A | Partial | Yes |
npm install @teng-lin/agent-fetch
Or run without installing:
npx agent-fetch https://example.com/page
Install the Agent Skill and your agent will automatically use agent-fetch when it needs to read URLs:
npx skills add teng-lin/agent-fetch
The skill teaches agents when and how to call agent-fetch — no configuration needed.
# Extract article as markdown
npx agent-fetch https://example.com/article
# Markdown content only (no metadata header)
npx agent-fetch https://example.com/article -q
# Full JSON output (title, content, markdown, metadata)
npx agent-fetch https://example.com/article --json
# Plain text only
npx agent-fetch https://example.com/article --text
# Raw HTML (no extraction)
npx agent-fetch https://example.com/article --raw
# Custom timeout (default: 20s)
npx agent-fetch https://example.com/article --timeout 30000
# With cookies (inline)
npx agent-fetch https://example.com/article --cookie "sessionId=abc123; theme=dark"
# With cookies (Netscape cookie file)
npx agent-fetch https://example.com/article --cookie-file ~/.cookies.txt
Getting cookies: Export a Netscape format cookie file from your browser using the Get cookies.txt Locally Chrome extension, then pass it with --cookie-file. Cookies are useful for maintaining authenticated sessions or accessing content that requires login.
# Extract only article content, remove navigation
npx agent-fetch https://example.com/article --select "article" --remove "nav, .sidebar"
# Use specific TLS fingerprint (default: chrome-143)
npx agent-fetch https://example.com/article --preset "ios-safari-18"
# Extract from local PDF file
npx agent-fetch ./document.pdf
# Show version
npx agent-fetch --version
Default output:
Title: Page Title
Author: Author Name
Site: example.com
Published: 2025-01-26T12:00:00Z
Language: en
Fetched in 523ms
---
# Heading
Full content with **formatting**, [links](https://example.com), and structure preserved...
import { httpFetch } from '@teng-lin/agent-fetch';
const result = await httpFetch('https://example.com/article');
if (result.success) {
console.log(result.markdown); // Full article as markdown
console.log(result.title); // "Article Title"
console.log(result.byline); // "By John Smith"
console.log(result.textContent); // Plain text
console.log(result.latencyMs); // 523
}
// With options
const result2 = await httpFetch('https://slow-site.com/article', {
timeout: 30000, // 30 second timeout (default: 20s)
preset: 'chrome-143', // TLS preset
});
Crawl a site and extract articles from multiple pages with depth control:
# Crawl with default settings (depth: 3, max 100 pages)
npx agent-fetch crawl https://example.com
# Crawl deeper with strict concurrency
npx agent-fetch crawl https://example.com --depth 5 --limit 50 --concurrency 3
# Crawl only matching URLs
npx agent-fetch crawl https://example.com --include "*/blog/*" --exclude "**/archive/**"
# Allow cross-origin crawling
npx agent-fetch crawl https://example.com --no-same-origin
# Add delay between requests (rate limiting)
npx agent-fetch crawl https://example.com --delay 1000
# With cookies and custom selectors
npx agent-fetch crawl https://example.com --cookie-file ~/.cookies.txt --select "article"
# Output as JSON for programmatic processing
npx agent-fetch crawl https://example.com --json
agent-fetch runs multiple extraction strategies in parallel and picks the most complete result. No single method works for every site — modern pages use frameworks, APIs, and structured data that each require different approaches.
| Strategy | What it does | Best for |
|---|---|---|
| Readability | Mozilla's Reader View algorithm (strict + relaxed passes) | Most pages with semantic HTML |
| Text density | Statistical text-to-tag ratio analysis (CETD) | Complex layouts that Readability over-trims |
| JSON-LD | Parses schema.org structured data | Sites with rich metadata |
| Next.js | Extracts from page props (__NEXT_DATA__) | Next.js sites (Pages Router) |
| React Server Components | Parses streaming RSC payloads | Next.js sites (App Router) |
| WordPress REST API | Fetches content via /wp-json/wp/v2/ endpoints | WordPress sites (40%+ of the web) |
| CSS selectors | Probes semantic containers (<article>, .post-content, etc.) | Fallback for unusual layouts |
Winner selection: Strategies that extract 500+ characters are candidates. If text-density or RSC finds 2x more content than Readability, it wins. Otherwise, the longest result is chosen. Metadata (author, date, site name) is composed from the best source for each field across all strategies.
Disclaimer: This tool is intended for fetching publicly accessible web content. Users are solely responsible for:
robots.txt directivesThe authors make no warranties about the legality of any specific use case. This tool does not grant permission to access any website or circumvent any access controls.
MIT
Installs and operates Google NotebookLM through a Python CLI and typed async API, covering notebooks, sources, grounded chat, research, and artifacts. Built for developers and AI agents such as Claude Code.
A personal AI assistant that runs on your own computer and answers through messaging channels such as Slack, Telegram and WhatsApp. Its skills cover browser automation, canvas panels, app previews and shareable diffs.
Gives your AI agent a learning loop: it turns past work into reusable skills, keeps notes across sessions, and searches its own earlier conversations. It can also run on a cheap server and be reached from chat apps like Telegram.
A single CLAUDE.md file with behavioral guidelines to reduce common LLM coding mistakes, such as overcomplication and unstated assumptions. It is derived from Andrej Karpathy's observations on coding pitfalls and helps Claude Code write, review, and refactor code more carefully.
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by running routine tasks, explaining complex code, and handling git workflows through natural language commands.
Fetches and extracts full article text from URLs, keeping headings, links and lists instead of summaries. Uses browser impersonation and cookies to get complete pages that plain HTTP tools often receive truncated. Install it with the command on its page. It includes agent-fetch. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it