npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

crawl-search-results

v0.0.5

Published

CLI tool to download search results as a single markdown file using WebCrawlerAPI

Readme

Crawl Search Results

Crawl Google Search Result CLI

A CLI tool to download and save Google search results using WebCrawlerAPI.

Get full content from the top 10 search results and save them as a single markdown file.

WebCrawlerAPI key is required

Example of the output markdown

Requirements

How It Works

  1. Takes your search query as input
  2. Constructs a Google search URL
  3. Uses WebCrawlerAPI to crawl the search page and follow up to 10 result links
  4. Downloads full markdown content from each linked website
  5. Saves all results in a single organized markdown file

Installation

Quick Start with bunx (No Installation)

bunx crawl-search-results "your search query"

Global Installation

npm install -g crawl-search-results
# or
pnpm add -g crawl-search-results

Usage

First Run

On your first run, you'll be prompted to enter your WebCrawlerAPI key:

$ crawl-search-results "webscraping guide"

╔════════════════════════════════════════════════════════════╗
║  Google Search Results Downloader (WebCrawlerAPI)          ║
╚════════════════════════════════════════════════════════════╝

⚠️  No API key found.

Get your free API key at:
🔗 https://app.webcrawlerapi.com/dashboard

Enter your API key: [paste your key here]
✓ API key saved!

⠋ Crawling Google search results for "webscraping guide"...
This may take a few moments as we crawl up to 10 search results.

✓ Successfully crawled 10 results!
📄 Saved to: .webcrawlera/2025-01-05-14-30-45-webscraping-guide.md

Subsequent Runs

After the first run, the tool will use your saved API key:

$ crawl-search-results "best practices"

╔════════════════════════════════════════════════════════════╗
║  Google Search Results Downloader (WebCrawlerAPI)         ║
╚════════════════════════════════════════════════════════════╝

⠋ Crawling Google search results for "best practices"...
This may take a few moments as we crawl up to 10 search results.

✓ Successfully crawled 10 results!
📄 Saved to: .webcrawlerapi/2025-01-05-14-35-22-best-practices.md

Output Format

Results are saved in the .webcrawlerapi/ directory with the following naming format:

.webcrawlerapi/YYYY-MM-DD-HH-MM-SS-query.md

Example:

.webcrawlerapi/2025-01-05-14-30-45-webscraping-guide.md

Each markdown file contains:

  • Metadata (crawl timestamp, job ID, number of items)
  • Full content from each of the 10 search results
  • URL, status code, and depth information for each result

API Key

You need a WebCrawlerAPI key to use this tool. Get your free API key at:

https://app.webcrawlerapi.com/dashboard

Your API key is stored in local directory in config.json

Examples

# Search for webscraping guides
crawl-search-results "webscraping guide"

# Search for best practices
crawl-search-results "best practices"

# Search with multiple words
crawl-search-results "how to build a REST API"

# Use with bunx (no installation)
bunx crawl-search-results "TypeScript tips"

Troubleshooting

Invalid API Key

❌ Error: Invalid API key. Please check your key at:
🔗 https://dash.webcrawlerapi.com/access

Solution: Verify your API key at the dashboard and run the command again.

Network Connection Issues

❌ Error: Failed to connect to WebCrawlerAPI.
Please check your internet connection.

Solution: Check your internet connection and try again.

License

MIT

Support

For issues and questions:

  • WebCrawlerAPI Documentation: https://webcrawlerapi.com/docs
  • WebCrawlerAPI Dashboard: https://app.webcrawlerapi.com/dashboard