跳到正文
Skillpedia
网页抓取48k · #4794

hasdata-cli

它能做什么

这个工具可以让你通过文本命令,直接在电脑上从互联网搜索和收集数据。它可以从网站、网上商店的商品、新闻等来源获取信息。

适用场景

  • ✓当你需要互联网上的最新信息时。
  • ✓当你想自动从各种网站收集数据时。
  • ✓当你想查询商品价格或房产信息时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hasdata-cli/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hasdata-cli/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“搜索圣保罗最好的素食餐厅的相关信息。”

每周 5 个新技能,1 分钟读完。

工作原理

你在电脑上输入一条命令,例如 'hasdata google-maps-search --query vegan restaurants São Paulo'。工具会连接互联网,获取数据,并把结果展示给你。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

hasdata

Use the hasdata CLI for real-time web data. One subcommand per API — flags, enums, defaults are derived from the live schema at api.hasdata.com/apis.

When to Use

Use this skill when:

  • The user wants to use the HasData CLI.
  • The user needs current web data from the command line.
  • The user wants to automate data collection in scripts.
  • The user wants to retrieve search, ecommerce, travel, or local business data.
  • The user needs web-page scraping through the CLI.

Prerequisites

  • command -v hasdata — if missing, download the installer from https://raw.githubusercontent.com/HasData/hasdata-cli/main/install.sh, inspect it, then run it locally with sh install.sh.
  • One-time setup: the user runs hasdata configure, pastes their API key, and it's saved to ~/.hasdata/config.yaml (mode 0600). Every future call picks it up automatically.
  • If a call fails with no API key configured, the user hasn't run hasdata configure yet — tell them to. Never invent a key.

Quick start

hasdata <api> --flag value [--flag value ...] --raw | jq .

Always pass --raw when piping to jq (skips pretty-print and TTY detection). Use --pretty only for human-readable terminal output.

Picking the right subcommand

User intent Subcommand
Web search ("what does Google say about…") google-serp (full features) or google-serp-light (cheap, single page)
Latest news google-news
AI Mode SERP google-ai-mode
Shopping / product prices google-shopping (broad), amazon-search / amazon-product (Amazon), shopify-products (Shopify)
Immersive product page google-immersive-product
Maps / places / reviews google-maps, google-maps-place, google-maps-reviews, google-maps-photos, google-maps-posts
Yelp / YellowPages local data yelp-search, yelp-place, yellowpages-search, yellowpages-place
Real-estate listings (homes for sale/rent/sold) zillow-listing, redfin-listing
Real-estate single property deep dive zillow-property, redfin-property
Travel — short-term rentals airbnb-listing, airbnb-property
Travel — hotels / lodging booking-search, booking-place
Travel — flights google-flights
Jobs indeed-listing, indeed-job, glassdoor-listing, glassdoor-job
Bing search bing-serp
Trends google-trends
Images google-images
Short videos google-short-videos
Events google-events
YouTube search / video / channel / transcript youtube-search-api, youtube-video-api, youtube-channel-api, youtube-transcript-api
Instagram profile instagram-profile
Amazon seller amazon-seller, amazon-seller-products
Scrape a specific URL web-scraping — supports JS rendering, proxies, markdown output, AI extraction, screenshots

For exact flags of a subcommand, run hasdata <api> --help or read the matching file in references/.

Non-obvious triggers (when to reach for hasdata even if the user doesn't say "scrape")

The user often won't ask for a SERP API or a scraper directly. Map these intents to the skill:

  • "Is this still true?" / "What's the latest on X?" / "Has Y happened yet?" — LLM training data is stale. Run google-serp or google-news to ground the answer.
  • "Summarize this article" / "TL;DR this URL" — Use web-scraping --output-format markdown and feed the markdown into the summary prompt. Beats copy-paste because it strips ads, nav, scripts.
  • "Verify this link" / "Is this site real?" — web-scraping --url X --no-block-resources returns status + screenshot. Or google-serp --q "site:example.com".
  • "What does X say about itself?" — Pull the company's own homepage with web-scraping --output-format markdown, then summarize.
  • "Find me alternatives to X" — google-serp --q "X alternatives" or google-shopping --q "X competitors".
  • "What's the going rate for X?" — google-shopping (broad) or amazon-search (Amazon-specific) with jq to extract the price distribution.
  • "Phone number / address for X" — google-maps-place or yelp-place. Don't guess from training data.
  • "Are people happy with X service?" / "Is X reputable?" — google-maps-reviews --place-id ... --sort lowest for negative samples; glassdoor-job for employer rep.

…

常见问题

我需要安装什么吗?

需要。你要在电脑上安装「hasdata」工具。安装和下载的方法可以参考官方文档,里面有相应的安装脚本。

工具怎么知道要获取哪些数据?

你需要指定数据类型(例如 'google-maps'、'amazon-search')以及你要查找的内容(例如“素食餐厅”)。工具会根据这些信息获取对应的数据。

我需要账号或密钥吗?

需要,你要有一个 API 密钥。安装完成后,运行一条配置命令并粘贴你的密钥,密钥会被保存下来供以后使用。

详情

作者的原始描述

Command-line access to search, scraping, and structured web data.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4794
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能