use-apify.com
Python: guides & tutorials
Ship scrapers in Python: requests, BeautifulSoup, Scrapy, and Playwright patterns for reliable extraction pipelines you can run locally or on Apify Actors.
22 articlesPage 1 of 3
View all tags
Python is the most popular language for web scraping thanks to libraries like Requests, BeautifulSoup, Scrapy, and Playwright. These guides cover the full toolkit: fetching pages, parsing HTML, handling dynamic JavaScript sites, and structuring output into JSON or CSV your analysis can use. Code examples run locally or deploy straight to Apify Actors.
Which library fits depends on the target. Requests plus BeautifulSoup handles static pages, Scrapy scales to large crawls with built-in pipelines, and Playwright drives a real browser for JavaScript-heavy sites. Below you will find step-by-step tutorials, library comparisons, and patterns for adding proxies, retries, and scheduling so your Python scrapers stay reliable in production.

Describe your scraping target to Claude and get Python Apify Actor code. Deploy with apify push. Claude does not run the scraper for you: it generates code you review, test, and deploy. New to Claude? You can try Claude free for a week to draft and iterate on Actor code before you commit. For pre-built targets, check the Apify Store first. Claude shines when you need a custom target: an internal portal, a niche marketplace, or a site with a unique layout. The Store covers popular sites (Indeed, Amazon, LinkedIn); Claude fills the gaps. Expect 15–30 minutes from prompt to first successful run for a simple target.

Fine-tuning adapts a pre-trained model to your domain — support tickets, legal docs, code style, or brand voice. QLoRA makes it practical on a single GPU: quantize the base model to 4-bit, train small LoRA adapters, then merge and deploy. This guide covers the full pipeline: dataset format, libraries, training script, saving and loading, evaluation, and cost estimates. For hardware, Liquid Web offers A100 and H100 GPU servers by the hour.

Python remains the dominant language for web scraping in 2026. Whether you need static HTML parsing, JavaScript-rendered pages, or production-grade crawlers, the Python ecosystem delivers: requests, BeautifulSoup, httpx, Playwright, Scrapy, and Crawlee for Python. This guide covers the full stack—libraries, comparison tables, code examples, and data storage—so you can choose and build with confidence. Try Apify for managed Python Actors or run Crawlee Python locally.