AGENT SKILL

pm-web-scrapper

Web Scrapper connector knowledge and safe action guide.

License 许可
AGPL-3.0
所属仓库
polymetrics-ai/cli
最近更新
2026-09-21
Stars
★ 7
Forks
0

01 前言 Front Matter

name
pm-web-scrapper
description
Web Scrapper connector knowledge and safe action guide.

02 资源文件 1

03 SKILL.md 正文

pm-web-scrapper

Purpose

Reads sitemap, scraping job, account, and problematic-URL metadata, and writes sitemap/scraping-job create/update/delete mutations, through the Web Scraper Cloud API.

Icon

Capabilities

  • check=true catalog=true read=true write=true query=false
  • Integration type: api

Authentication

  • Use pm credentials add with --from-env or --value-stdin for secret fields.

Configuration

  • base_url
  • mode
  • scraping_job_ids
  • sitemap_id_filter
  • api_token (secret) (required)

ETL Streams

  • sitemaps:
    • primary key: id
    • fields: id(integer), name(string), url(string)
  • jobs:
    • primary key: id
    • fields: id(integer), sitemap_id(integer), status(string)
  • sitemaps_list:
    • primary key: id
    • fields: id(integer), name(string)
  • scraping_jobs_list:
    • primary key: id
    • fields: custom_id(string), driver(string), id(integer), jobs_empty(integer), jobs_executed(integer), jobs_failed(integer), jobs_scheduled(integer), page_load_delay(integer), request_interval(integer), scheduled(integer), sitemap_id(integer), sitemap_name(string), status(string), stored_record_count(integer), test_run(integer), time_created(string)
  • account:
    • primary key: email
    • fields: email(string), firstname(string), lastname(string), page_credits(integer)
  • problematic_urls:
    • primary key: scraping_job_id, url
    • fields: scraping_job_id(string), type(string), url(string)

Sync Modes

  • ETL sync modes: full_refresh_append, full_refresh_overwrite

Reverse ETL Actions

  • create_sitemap:
    • endpoint: POST /sitemap
    • required fields: _id, startUrl, selectors
    • risk: creates a new sitemap (scraper configuration) in the caller's Web Scraper Cloud account; low-risk, does not itself start scraping any site
  • update_sitemap:
    • endpoint: PUT /sitemap/{{ record.id }}
    • required fields: id, _id, startUrl, selectors
    • risk: overwrites an existing sitemap's start URLs and selector configuration; any scraping job created from this sitemap after the update uses the new configuration
  • delete_sitemap:
    • endpoint: DELETE /sitemap/{{ record.id }}
    • required fields: id
    • risk: permanently removes a sitemap; any scraping job history tied to it is not itself deleted but the configuration can no longer be reused or edited
  • create_scraping_job:
    • endpoint: POST /scraping-job
    • required fields: sitemap_id
    • risk: starts a real scraping run against the sitemap's (or start_urls override's) target site(s); consumes page credits from the caller's Web Scraper Cloud account for every page scraped
  • delete_scraping_job:
    • endpoint: DELETE /scraping-job/{{ record.id }}
    • required fields: id
    • risk: permanently removes a scraping job and its scraped data; any already-downloaded export is unaffected, but the job's stored records become unrecoverable through the API

Security

  • read risk: external Web Scraper Cloud API read of the caller's own sitemap/scraping-job/account/problematic-URL metadata
  • write risk: external mutation of the caller's own sitemaps and scraping jobs; create_scraping_job starts a real scraping run against a target site and consumes page credits from the caller's account, and delete_sitemap/delete_scraping_job are irreversible through the API
  • approval: required for create_scraping_job (consumes billable page credits and issues real outbound requests to a third-party site) and for delete_sitemap/delete_scraping_job (irreversible); create_sitemap/update_sitemap are low-risk (configuration only, no outbound scraping)
  • Never pass secret values in chat, shell arguments, logs, docs, or JSON output.

Commands

Inspect as a manual

pm connectors inspect web-scrapper

Inspect as structured JSON

pm connectors inspect web-scrapper --json

Agent Rules

  • Run pm connectors inspect web-scrapper before creating credentials or plans.
  • Use --json only when the caller needs structured output; use the manual for human-readable guidance.
  • Never ask the user to paste secret values into chat.
  • For reverse ETL writes, create a plan, show the preview, wait for explicit approval, then run with the approval token.

04 同仓库更多 Skills