Compliant Web Scraper

    by 糟糕西瓜

    1

    Automated web scraping with mandatory robots.txt compliance, rate limiting, and PII filtering.

    Free

    Security scanned

    Works with the AI Agents you already use

    Compliant Web Scraper

    Example session with this skill installed

    Check if I can scrape prices from https://example-store.com/products and if so, fetch the top 5 product names and prices into a CSV file.

    • Read your context and instructions
    • Compiled the compliant web scraper
    • Generated the data export

    I have completed the compliance check and data extraction for the requested site. The target path is accessible according to the site's robots.txt, and a 3.0s crawl delay was applied.

    Scraping Results & Compliance Report

    MetricDetail
    Target URLhttps://example-store.com/products
    Compliance StatusPASSED (robots.txt allows /products)
    Crawl Delay3.0s (with 1.5s jitter)
    Data TypePublic Product Info (Non-PII)
    Output Fileproduct_prices.csv

    Extracted Data Preview

    timestamp,product_name,price,currency
    2023-10-27T10:15:00Z,Wireless Headphones,89.99,USD
    2023-10-27T10:15:03Z,Mechanical Keyboard,120.00,USD
    2023-10-27T10:15:07Z,Gaming Mouse,45.50,USD
    2023-10-27T10:15:11Z,USB-C Hub,29.99,USD
    2023-10-27T10:15:14Z,Monitor Stand,35.00,USD
    

    Next steps

    1. View the full dataset in product_prices.csv.
    2. Review cache/compliance_report.json for the full robots.txt audit trail.
    3. Schedule a follow-up fetch by providing a list of additional category URLs.

    product_prices.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Web scraping often leads to legal risks or IP bans due to aggressive fetching and lack of compliance checks. This skill enforces a "safety-first" workflow to collect public data without violating site policies or privacy laws.

    What it does

    • Compliance audit runs an automated check against robots.txt and site terms to verify path accessibility.
    • Data triage filters out personal identifiable information (PII) like phone numbers or addresses before extraction.
    • Polite fetching executes requests with mandatory rate limiting, exponential backoff, and local caching.
    • Structured extraction parses public HTML into clean JSON or CSV formats tailored to the target site structure.
    • Evidence logging generates a compliance report including crawl delays and robots.txt snapshots for audit trails.

    How it works

    1. Run Check: Execute compliance_check.py on the target URL to verify permissions and identify official APIs.
    2. Define Schema: Specify which public fields to extract, such as product prices, news titles, or dates.
    3. Fetch Data: Use polite_fetch.py with defined delay and jitter parameters to retrieve raw content safely.
    4. Parse and Save: The agent extracts the defined fields and saves them to a structured file with timestamps.

    Frameworks & tools

    Built with Python using standard libraries to minimize dependencies. Utilizes WebFetch for initial reconnaissance and local file operations for caching and logging.

    Why this beats prompting it yourself

    Generic prompts often ignore robots.txt or lack exponential backoff, leading to blocked IPs. This skill enforces a hard-coded compliance gate that refuses to scrape PII or restricted paths, protecting your infrastructure and reputation.

    Use cases

    • Market research to track competitor pricing on public e-commerce pages.
    • Content aggregation for pulling headlines and links from public news portals.
    • Audit preparation by generating data provenance logs for scraped datasets.
    • Site monitoring to detect changes in public information without triggering security alerts.

    Known limitations

    Does not support sites requiring login, CAPTCHA solving, or session management. Explicitly skips any path forbidden by robots.txt or containing PII.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Fetches arbitrary public websites; robots.txt rules are checked before every request. No login, CAPTCHA, paywall or anti-bot bypass.

    Listed7 days ago
    Updated3 days ago

    What's inside

    Frequently Asked Questions

    The skill runs a mandatory check against the target site's robots.txt file and automatically skips any paths or directories marked as 'Disallow' to ensure your data collection remains ethical and legal.

    No, this skill is strictly for public data; it does not support bypassing CAPTCHAs, handling session cookies, or logging into password-protected areas.

    The skill includes a built-in 'Data Triage' layer that uses pattern matching to identify and redact sensitive information like phone numbers and physical addresses before the data is saved.

    You will receive the core Python-based automation scripts (compliance_check.py and polite_fetch.py), a README guide for configuration, and a sample schema for structured data extraction.

    The skill is designed to be framework-agnostic and can be integrated into any AI agent capable of executing Python scripts or making system calls to local files.

    The skill uses a 'Polite Fetching' protocol which includes mandatory delays between requests and exponential backoff, preventing your IP from being flagged or banned by site security.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free