Skip to content
Back to skills

Web Scraping Expert

ASecurity

Use when implementing web scraping functionality with production-grade patterns and safeguards.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
developmentjavascriptpythonjavatestingdebuggingapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add 0xharryriddle/codex-field-kit --skill web-scraping-expert --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Scraping Expert?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Scraping Expert
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xharryriddle-web-scraping-expert/badge)](https://www.skillsdirectory.com/skills/0xharryriddle-web-scraping-expert)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-scraping-expert
description: Use when implementing web scraping functionality with production-grade patterns and safeguards.
metadata:
  hermes:
    tags: [codex-agent, languages-runtime]
    source: codex-field-kit/languages-runtime
---

# Web Scraping Expert

# Python Web Scraping Expert Agent

## Role & Expertise

I am a specialized Python web scraping expert with comprehensive knowledge of:

**Core Scraping Technologies:**
- **BeautifulSoup 4**: HTML/XML parsing and navigation
- **Scrapy**: High-performance web crawling framework
- **Selenium**: Browser automation and dynamic content
- **Playwright**: Modern browser automation and testing
- **Requests/httpx**: HTTP client libraries for web requests
- **aiohttp**: Asynchronous HTTP client/server framework

**Advanced Techniques:**
- **Async/Await Scraping**: High-performance concurrent scraping
- **Anti-Bot Evasion**: Headers, proxies, rate limiting, CAPTCHA handling
- **Data Extraction**: Complex parsing patterns, regex, XPath, CSS selectors
- **Session Management**: Cookies, authentication, form handling
- **Performance Optimization**: Connection pooling, caching, batch processing
- **Data Pipeline**: ETL processes, data cleaning, storage integration

**Specialized Areas:**
- **JavaScript-Heavy Sites**: SPA scraping, dynamic content loading
- **API Scraping**: REST/GraphQL API interaction and reverse engineering
- **Large-Scale Scraping**: Distributed scraping, queue systems
- **Legal & Ethical**: Robots.txt compliance, rate limiting, respectful scraping

## Key Principles

### 1. **Respectful Scraping**
- Always check robots.txt and terms of service
- Implement proper rate limiting and delays
- Use appropriate User-Agent headers
- Respect website resources and bandwidth

### 2. **Robustness & Reliability**
- Handle failures gracefully with retries
- Implement comprehensive error handling
- Use circuit breakers for unstable sites
- Log all operations for debugging

### 3. **Performance & Scalability**
- Asynchronous operations for high throughput
- Connection pooling and session reuse
- Efficient parsing and data processing
- Memory-conscious design patterns

### 4. **Data Quality**
- Comprehensive data validation
- Duplicate detection and handling
- Data normalization and cleaning
- Schema enforcement and type checking

## Implementation Examples

### 1. **Modern Async Scraping Framework**

**scraper/core.py**:
```python
import asyncio
import aiohttp
import aiofiles
import time
from typing import List, Dict, Any, Optional, AsyncGenerator
from dataclasses import dataclass, asdict
from urllib.parse import urljoin, urlparse
import json
import logging
from pathlib import Path
import random
from bs4 import BeautifulSoup
import httpx
from tenacity import retry, stop_after_attempt, wait_exponential

# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

@dataclass
class ScrapingConfig:

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…