Chuyển đến nội dung
Skillpedia
Thu thập dữ liệu web48k · #4795

hasdata

Skill này làm gì

Công cụ này lấy thông tin từ các trang web cho bạn. Nó có thể trích xuất dữ liệu cụ thể từ trang web hoặc kết quả tìm kiếm.

Khi nào nên dùng

  • ✓Khi bạn cần thu thập thông tin từ một trang web cụ thể.
  • ✓Khi bạn muốn xem kết quả tìm kiếm Google về một chủ đề.
  • ✓Khi bạn cần dữ liệu có tổ chức từ cửa hàng trực tuyến, bất động sản hoặc tin tuyển dụng.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hasdata/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm 5 sản phẩm bán chạy nhất trên Amazon với từ khóa 'coffee makers'.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn cho công cụ biết trang web hoặc tìm kiếm nào bạn muốn phân tích, và công cụ sẽ truy cập để lấy dữ liệu bạn yêu cầu, sắp xếp gọn gàng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

HasData

Cloud platform for extracting public web data. One API key, three execution modes. All endpoints sit under https://api.hasdata.com and authenticate with x-api-key.

curl -G 'https://api.hasdata.com/scrape/google/serp' \
  --data-urlencode 'q=coffee' \
  -H 'x-api-key: <your-api-key>'

401 invalid key, 403 quota exhausted, 429 concurrency cap, 500 server error (retry).

When to Use

Use this skill when:

  • The user needs web scraping.
  • The user needs search engine results.
  • The user needs structured data extraction.
  • The user needs ecommerce, travel, jobs, or local business data.
  • The user explicitly asks about HasData.

Three execution modes

Mode Latency When Endpoint
Web Scraping API seconds Arbitrary URL — JS rendering, CSS/AI extraction, screenshots POST /scrape/web
Scraper APIs (sync) seconds Pre-parsed JSON for known platforms (Google, Amazon, Zillow, …) GET /scrape/<vertical>/<resource>
Scraper Jobs (async) minutes–hours Bulk extraction, recursive crawling, webhook fan-out POST /scrapers/<slug>/jobs

Decision rule. Default to a Scraper API when one exists for the platform (pre-parsed JSON, no selector maintenance). Use Web Scraping for arbitrary URLs not covered by an API. Reach for a Scraper Job only when no API equivalent exists — crawler, contacts, sec-edgar, amazon-bestsellers, amazon-product-reviews — or when async fan-out + webhooks save engineering time over a paginated client loop.

Always-true response shape

{ "requestMetadata": { "id": "…", "status": "ok", "url": "…" }, "...": "endpoint-specific" }

Treat data as valid only if requestMetadata.status === "ok". HTTP 200 alone isn't enough.

High-leverage patterns

  • SERP-first enrichment. Google SERP can surface public snippets for company and professional-profile lookup. Use it for business or authorized research, avoid unnecessary direct scraping, and treat personal email/phone lookup as allowed only with a legitimate purpose and user authorization.
  • AI Mode + verify. /scrape/google/ai-mode for the answer + references → /scrape/web (markdown) on each reference URL → cited RAG context, no vector DB.
  • Maps → leads. /scrape/google-maps/search returns business websites and phones; collect contact details only from public, permitted sources and apply opt-out, rate, and privacy-law constraints before any outreach use.
  • Crawler → corpus. crawler Scraper Job with outputFormat: ["markdown"] + includePaths: "/docs/.+" produces an LLM-ready corpus in one submission.
  • Pre-extracted via SERP rich snippets. knowledgeGraph, localResults, inlineShoppingResults, relatedQuestions carry pre-parsed public facts. Always check them before considering direct page access.

When to call from code (the wiring)

  • Auth: x-api-key header on every request. Read from HASDATA_API_KEY env. Never hardcode, never log.
  • Timeouts: set client timeout ≥ 300 s. HasData's own deadline is 300 s; shorter clients produce phantom failures while still being billed on completion.
  • Retries: 429 and 5xx only — exponential backoff, jitter. Never retry 4xx (auth, validation).
  • Concurrency: cap at your plan limit. The free tier is 1; anything higher just generates 429s.
  • Async jobs: the submit response handle is body.id (integer), not jobId. Persist it immediately. Poll GET /scrapers/jobs/<id> every 10–30 s with backoff; treat webhooks as best-effort and always pair with polling. On finished the status carries data: {csv, json, xlsx} short-lived URLs — download immediately.

See references/code-recipes.md for ready-to-paste Python and TypeScript clients with retry, backoff, bounded concurrency, and the full job lifecycle.

Common gotchas

  • 300 s server deadline. Match client timeout.
  • Disable jsRendering first, enable only if the page needs it — most static pages parse fine without a headless browser.
  • No cookies parameter — cookies go through headers["Cookie"].
  • includePaths regex is case-sensitive. /blog/.+ won't match /Blog/....
  • Scraper Job data is double-wrapped. Each row is body.data[i].data; outer wraps with id, jobId, dataId, createdAt, updatedAt.
  • requestMetadata.status === "ok" is the only success signal. HTTP 200 alone isn't enough.

…

Câu hỏi thường gặp

Làm sao công cụ biết thông tin nó lấy được là hợp lệ?

Công cụ kiểm tra xem yêu cầu có hoàn thành thành công không. Nó chỉ coi thông tin là hợp lệ khi mọi thứ diễn ra đúng như mong đợi.

Tôi có thể tìm bất kỳ thông tin nào trên bất kỳ trang web nào không?

Công cụ giỏi lấy dữ liệu công khai từ các trang phổ biến như Google, Amazon và những trang khác. Nó có thể không hoạt động với các trang rất cụ thể hoặc được bảo vệ.

Việc lấy thông tin có mất nhiều thời gian không?

Tùy trường hợp. Lấy kết quả tìm kiếm thì nhanh. Thu thập nhiều dữ liệu từ nhiều trang có thể mất lâu hơn, đôi khi đến hàng giờ.

Chi tiết

Mô tả gốc của tác giả

Use HasData APIs for web scraping and structured web data extraction.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4795
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự