--- id: itemloaders version: "1.4.0" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # itemloaders — Base library for scrapy's ItemLoader License: permissive · Maintenance: active · Downloads: 2.9M/mo ## What it is and what it does Itemloaders is a data extraction library that wraps HTML and XML parsing to collect fields from web pages using CSS and XPath selectors. It sits between raw HTML/XML and your application, providing a consistent interface for extracting multiple values per field, applying transformations, and normalizing data across different sources. The library is designed for web scraping workflows where you need to extract the same logical fields from many different page structures. Instead of writing extraction logic inline, you define your selectors and parsing rules once in a loader, then apply it repeatedly. It handles multiple selector paths per field (useful when data appears in different locations), supports literal values, and returns results as lists by default to accommodate multi-valued fields. Use it for: - Extract product names, prices, and descriptions from e-commerce pages using CSS/XPath rules - Standardize contact information scraped from multiple website formats into consistent fields - Collect article metadata (title, author, date, body) from news sites with varying HTML structures - Parse structured data from XML feeds or APIs that return XML responses - Build a data pipeline that applies the same extraction rules across hundreds of similar pages ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Itemloaders extracts and standardizes structured data from HTML and XML documents using CSS and XPath selectors, with built-in casting and parsing rules. Yes. Itemloaders is actively maintained, has no known vulnerabilities, requires only lightweight dependencies, and solves a real problem in web data extraction. It's production-stable and well-suited for any project that needs to extract and normalize data from HTML or XML at scale. Install it if you're doing web scraping or structured data collection. ## Install pip install itemloaders uv add itemloaders poetry add itemloaders ## Installing itemloaders Before you install: Low friction: pure Python wheel with only three runtime dependencies (itemadapter, jmespath, parsel). Actively maintained with recent commits and production-stable status. License in practice: BSD-3-Clause permissive license allows commercial and private use with minimal restrictions. Quickstart: pip install itemloaders from itemloaders import ItemLoader from parsel import Selector html = '