web-scraping

Automate web scraping and data extraction with Playwright and BeautifulSoup.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/zhizhunbao/ai-dev-config --skill web-scraping-zhizhunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-scraping
Source: https://github.com/zhizhunbao/ai-dev-config/tree/main/core/skills/dev-web_scraping
Command: npx skills add https://github.com/zhizhunbao/ai-dev-config --skill web-scraping-zhizhunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, beautifulsoup4, lxml, tenacity, html2text, httpx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of extracting data from websites, handling dynamic content and anti-bot measures to retrieve information efficiently.

Core Features & Use Cases

  • Web Scraping: Extract content from any webpage, including dynamic JavaScript-heavy sites.
  • Data Extraction: Parse and structure data from articles, blogs, and other web sources.
  • Anti-Bot Bypass: Utilizes techniques like stealth mode and human-like behavior to avoid detection.
  • Use Case: Automatically download all articles from a specific blog category and save them as clean Markdown files.

Quick Start

Use the web-scraping skill to extract the content from the URL https://example.com/article.

Frequently Asked Questions about web-scraping

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape dynamic JavaScript-heavy websites without getting blocked?

To scrape dynamic websites without blocks, you automate browser interactions and apply stealth techniques to mimic human behavior. This skill uses Playwright for rendering JavaScript content and bypassing anti-bot mechanisms to extract structured data reliably.

What is the best way to extract article content and save it as clean Markdown?

The best way to extract article content as clean Markdown is to fetch the rendered HTML and convert it. This skill uses html2text and BeautifulSoup to parse web sources and save the extracted data as structured Markdown files.

Does this web scraping approach handle infinite scrolling and rate limiting?

Yes, this web scraping approach handles infinite scrolling by automating browser interactions with Playwright. It also includes built-in rate limiting, retries, and caching to ensure robust and efficient data collection without triggering server blocks.

Why does my crawler fail on anti-bot protected pages and how to fix it?

Crawlers fail on anti-bot protected pages because automated requests lack human-like browser fingerprints and behaviors. This skill resolves this by utilizing stealth mode and simulated human interactions to avoid detection while retrieving structured data.

Can I use Playwright and BeautifulSoup together for data extraction?

Yes, you can use Playwright and BeautifulSoup together for data extraction. Playwright handles dynamic content rendering and JavaScript execution, while BeautifulSoup parses the resulting HTML to extract and structure the specific data you need.

How to automate web scraping retries when a request fails?

To automate web scraping retries when a request fails, you implement a retry policy that automatically reattempts failed network connections. This skill uses the tenacity library to handle transient errors, ensuring robust data extraction from unreliable web sources.