AGENT SKILL

serpmaven

Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.

License 许可
MIT
所属仓库
bg-szy/TOP-SKILLS
最近更新
2026-11-15
Stars
★ 6
Forks
0

01 前言 Front Matter

name
serpmaven
license
MIT
description
Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.

02 资源文件 1

03 SKILL.md 正文

SERP Maven (serpmaven)

Open source, MIT: github.com/nodemaven/serpmaven. It warms a sticky proxy session with ordinary browsing, opens Google's results page for each query in a real Chrome browser, checks whether Google served results or refused, and writes one JSON record per results page. Captchas and blocks come back labelled, never as empty results. Formerly gserp and google-browser-scraper; both names still install it.

Install and first run

pip install serpmaven          # Python 3.10+, inside a venv on macOS and Linux
serpmaven login                # saves the proxy login once
serpmaven search "best running shoes" --country us -o results.jsonl

Or with uv, no Python needed: uv tool install serpmaven, and uvx serpmaven ... to try it without installing. The first search offers to download its browser (about 150 MB, once per machine); serpmaven install does it ahead of time and serpmaven doctor checks the setup. On a Linux server without a screen: sudo apt install xvfb, serpmaven install --with-deps, export SERPMAVEN_BROWSER_ARGS=--enable-unsafe-swiftshader, then start every command with xvfb-run -a.

Proxy

It needs a residential proxy with sticky sessions. serpmaven login asks for the NodeMaven Proxy Username and Proxy Password from the dashboard; for any other provider, save its URL with {session} where the session id goes in the username:

serpmaven login --proxy "http://USER-session-{session}:PASS@gate.example.com:7000"

--proxy, --nodemaven, SERPMAVEN_PROXY and NODEMAVEN_LOGIN / NODEMAVEN_PASSWORD win over the saved login; serpmaven logout deletes it. --country applies to NodeMaven only. No NodeMaven account yet: 2 GB free with the code GOOGLENM.

To cap spend, --nodemaven-demo --traffic-limit-mb 300 creates a sub-user with a traffic limit from the dashboard API key in NODEMAVEN_API_KEY (this tool's name; the SDK's is NODEMAVEN_APIKEY) and deletes it when the run ends. A fresh warm-up alone is about 60 MB, so keep the cap well above that.

--no-proxy uses the machine's own connection: fine for a try, captchas come sooner. SOCKS5 needs an IP-whitelisted endpoint, because Chrome cannot send a SOCKS5 username and password.

Expectations to set

  • The first query takes minutes: a new proxy IP is warmed up first. Later queries take seconds, and new proxy IPs start from the first one's cookies.
  • The terminal shows each step; the run ends with pages served, traffic used and proxy IPs used. --price-per-gb adds the cost per 1000 pages.
  • A run where Google refuses proxy IP after proxy IP stops instead of spending more.

Ways to run it

A file of queries: serpmaven search -f queries.txt -o results.jsonl; --workers 2 runs two browsers on two proxy IPs from one list.

HTTP API, same record format:

serpmaven serve --country us --prewarm
curl "http://127.0.0.1:8000/search.json?q=best+running+shoes"

pages=N, hl and gl per request. /health answers 503 warming until the prewarm is done. Set SERPMAVEN_API_KEY to require a key; without one it listens on localhost only.

MCP server for an AI client (one tool, google_search(query, pages, hl, gl)), using the saved login:

{
  "mcpServers": {
    "google-search": {
      "command": "uvx",
      "args": ["serpmaven", "mcp", "--country", "us", "--prewarm"]
    }
  }
}

Python:

from serpmaven import NodeMavenSource, Scraper

scraper = Scraper(NodeMavenSource(country="us"))
for page in scraper.run(["best running shoes"]):
    for result in page.get("organic_results", []):
        print(result["position"], result["title"], result["link"])

Docker: ghcr.io/nodemaven/serpmaven, e.g. docker run --rm -p 8000:8000 -e SERPMAVEN_API_KEY=... -e SERPMAVEN_PROXY='http://USER-session-{session}:PASS@host:port' ghcr.io/nodemaven/serpmaven serve --host 0.0.0.0.

Output

One JSON object per results page: search_metadata (status, page_verdict, timings), search_parameters, organic_results (position, title, link, snippet), ads, related_questions, related_searches, ai_overview, local_results, pagination, and an exit block with the proxy session and bytes. Knowledge panels, shopping and images are not parsed. A failed query is a record with an error. --format csv writes organic results as a table.

Options worth knowing

option default
--workers N 1 N browsers on N proxy IPs from one query list
--pages N 1 result pages per query
--country CC with NodeMaven
--hl, --gl en, unset language and country of the results
--max-per-exit N 300 queries before a served proxy IP is retired
--gap LOW,HIGH 2,5 seconds between queries on one proxy IP
--no-resolve-links keep Google's /goto redirect links
--save-html DIR keep page HTML, for reporting a parsing problem

serpmaven search --help lists the rest. Use within Google's terms and the law where it runs.

04 同仓库更多 Skills

bg-szy
bg-szy/TOP-SKILLS

revnu-landing-page-audit

Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: "audit my landing page", "why isn't this page converting", "review my homepage", "my ads get clicks but no signups", "people bounce from the pricing page", "CRO review", "improve conversion rate", "is my hero section clear", "roast my landing page", "rewrite my headline", "what's wrong with this page", "landing page feedback", "make the signup page convert better". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-growth-context

Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents/revnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says "set up our marketing context", "who is our ideal customer", "write our ICP", "describe the product for marketing", "positioning doc", "what's our brand voice", "remember this about our customers", "log what we tried", "what have we learned from marketing", "we changed pricing, update the context", "update our growth notes", "summarize the business for the agent", "import my product-marketing.md", "start a growth doc", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-get-listed

Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: "best X" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says "get us listed", "which directories should we submit to", "how do we get into best-of lists", "why does ChatGPT recommend competitors and not us", "get mentioned in AI answers", "submit to awesome lists", "get on G2", "where are our competitors listed", "pitch listicle authors", "find backlink opportunities", "launch directories", "get into roundups", "Product Hunt alternatives", "where should we be listed", "get cited by Perplexity". Never submits, pays or posts without a yes. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-ai-readiness-audit

Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks "is my site ready for AI search", "audit my site for AI answers", "AEO audit", "GEO audit", "why doesn't ChatGPT quote our pricing", "make our pages citable by AI", "do I need llms.txt", "does schema help with ChatGPT", "check our structured data", "is our content visible without JavaScript", "AI SEO audit", "optimize our homepage for AI answers", "LLM SEO check", "why does AI get our product wrong", "fix our site for AI Overviews". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

proxy-troubleshooting

Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.

★ 6
bg-szy
bg-szy/TOP-SKILLS

proxy-benchmark

Measure proxies and scraping browsers with the open-source proxy-benchmark harness - success rate on real targets (Google, Bing, DuckDuckGo, Amazon), bytes per page, exit yield, and side-by-side comparison of providers or automation engines (Playwright, Patchright, Camoufox, zendriver, SeleniumBase and others). Use when the user wants to test or compare proxy providers, check which browser gets past a target, estimate traffic cost, or reproduce a published number.

★ 6