OpenParable
Skip to content
← Back to skills

Web Scraping

Research
web_scraping

Web Scraping is an Agent Skill for research published in the mofa-org/mofa repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Extract data from web pages, including HTML parsing, API interaction, and data export

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/mofa-org/mofa/blob/HEAD/examples/skills/web_scraping/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/web-scraping-6668c701, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Web Scraping Skill

This skill enables web scraping and data extraction capabilities.

When to Use

Use this skill when you need to:

  • Scrape data from websites
  • Interact with REST APIs
  • Parse HTML content
  • Export scraped data to various formats

Scraping Methods

Static HTML Scraping

For static websites, use CSS selectors to extract data.

Dynamic Content

For JavaScript-heavy sites, use browser automation.

API Access

For structured data access, prefer REST or GraphQL APIs.

Code Tools

This skill includes:

  • @code: python scraper.py --input {input} - Generic web scraper
  • @code: bash fetch.sh {url} - Simple HTTP fetcher

Best Practices

  1. Check robots.txt: Always respect site scraping policies
  2. Rate limiting: Add delays between requests to avoid overwhelming servers
  3. User-Agent: Identify your bot properly
  4. Error handling: Gracefully handle network errors and timeouts

Example

To scrape a webpage:

Use the web_scraping skill to extract product information from https://example.com/products