web-scraping

Automate web extraction with Trafilatura, Requests, Playwright stealth, and yt-dlp or instaloader for sites and social media.

2.3k|357|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/MaxMiksa/Auto-Company --skill web-scraping-maxmiksa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-scraping
Source: https://github.com/MaxMiksa/Auto-Company/tree/main/.claude/skills/web-scraping
Command: npx skills add https://github.com/MaxMiksa/Auto-Company --skill web-scraping-maxmiksa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, trafilatura, playwright, yt-dlp, instaloader, fake_useragent, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the extraction of content from websites, overcoming challenges like anti-bot measures, paywalls, and dynamic content loading.

Core Features & Use Cases

  • Multi-Strategy Scraping: Employs a cascade of methods (Trafilatura, Requests, Playwright) for robust data retrieval.
  • Anti-Bot Bypass: Utilizes Playwright with stealth mode to circumvent detection.
  • Undocumented API Discovery: Provides techniques for reverse-engineering and utilizing hidden APIs.
  • Poison Pill Detection: Identifies and handles paywalls, CAPTCHAs, and rate limits.
  • Social Media Scraping: Includes specific tools for YouTube, Instagram, and TikTok.
  • Use Case: Extract product details, reviews, and pricing from an e-commerce site, even if it employs JavaScript rendering or basic bot protection.

Quick Start

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

Frequently Asked Questions about web-scraping

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

FAQPage Schema
How do I extract web content from sites with anti-bot detection?

To extract web content while bypassing anti-bot detection, you can use a multi-layered approach. This involves cascading from simple requests with rotating user agents to Playwright with stealth mode to reliably retrieve the data.

What is the best way to scrape social media content from YouTube and Instagram?

The best way to scrape social media content is by using specialized extraction tools. This approach utilizes yt-dlp and instaloader to reliably extract videos, images, and metadata from platforms like YouTube, Instagram, and TikTok.

How do I handle paywalls and CAPTCHAs when scraping a website?

To handle paywalls and CAPTCHAs during web scraping, you need poison pill detection. This identifies and flags rate limits, paywalls, and CAPTCHAs, allowing the extraction process to avoid or gracefully handle these access barriers.

Can I use Playwright to scrape dynamic JavaScript-rendered pages?

Yes, you can use Playwright to scrape dynamic JavaScript-rendered pages. It employs a stealth mode configuration to circumvent detection, ensuring reliable content retrieval from complex, dynamically loaded e-commerce sites.

How do I find and use undocumented APIs for web scraping?

Finding undocumented APIs involves reverse-engineering network requests from the target website. Once discovered, these hidden APIs can be utilized directly with requests to extract structured data, bypassing the need for complex HTML parsing.

Why does Trafilatura fail to extract main content from some web pages?

Trafilatura may fail to extract main content when a web page relies heavily on dynamic JavaScript rendering or employs strict anti-bot measures. In these cases, falling back to Playwright with stealth mode is required to load and retrieve the content.