PINGDOM_CHECK

#ExtractSummit2026 The world's largest web scraping conference returns. Austin Oct 7–8 · Dublin Nov 10–11.

Register now
Data Services
Pricing
Login
Try Zyte APIContact Sales
  • Unblocking and Extraction

    Zyte API

    The ultimate API for web scraping. Avoid website bans and access a headless browser or AI Parsing

    Ban Handling

    Headless Browser

    AI Extraction

    SERP

    Enterprise

    DocumentationSupport

    Hosting and Deployment

    Scrapy Cloud

    Run, monitor, and control your Scrapy spiders however you want to.

    Coding Agent Add-Ons

    Agentic Web Data

    Plugins that give coding agents the context to build production Scrapy projects. Starts with Claude Code.

  • Data Services
  • Pricing
  • Browse

    • BlogArticles, podcasts, videos
    • Case studiesCustomer outcomes
    • White papersIn-depth reports
    • EventsConferences, webinars, recordings

    Subscribe

    • NewsletterSwiftly delivered
    • Discord communityExtract Data community
  • Product and E-commerce

    From e-commerce and online marketplaces

    Data for AI

    Collect and structure web data to feed AI

    Job Posting

    From job boards and recruitment websites

    Real Estate

    From Listings portals and specialist websites

    News and Article

    From online publishers and news websites

    Search

    Search engine results page data (SERP)

    Social Media

    From social media platforms online

  • Meet Zyte

    Our story, people and values

    Contact us

    Get in touch

    Support

    Knowledge base and raise support tickets

    Terms and Policies

    Accept our terms and policies

    Open Source

    Our open source projects and contributions

    Web Data Compliance

    Guidelines and resources for compliant web data collection

    Join the team building the future of web data
    We're Hiring
    Trust Center
    Security, compliance & certifications
Login
Try Zyte APIContact Sales

Zyte Developers

Coding tools & hacks straight to your inbox

Become part of the community and receive a bi-weekly dosage of all things code.

Join us
    • Zyte Data
    • News & Articles
    • Search
    • Social Media
    • Product
    • Data for AI
    • Job Posting
    • Real Estate
    • Zyte API - Ban Handling
    • Zyte API - Headless Browser
    • Zyte API - AI Extraction
    • Web Scraping Copilot
    • Zyte API Enterprise
    • Scrapy Cloud
    • Solution Overview
    • Blog
    • Webinars
    • Case Studies
    • White Papers
    • Documentation
    • Web Scraping Maturity Self-Assesment
    • Web Data compliance
    • Meet Zyte
    • Jobs
    • Terms and Policies
    • Trust Center
    • Support
    • Contact us
    • Pricing
    • Do not sell
    • Cookie settings
    • Sign up
    • Talk to us
    • Cost estimator
All articles
AI-assisted data extraction28, 28 articles
Data gathering for AI6, 6 articles
Large Language Models (LLMs)24, 24 articles
Tool-assisted coding3, 3 articles
Developer interest143, 143 articles
Integration13, 13 articles
Open-source96, 96 articles
Scraping practice59, 59 articles
Scraping strategy46, 46 articles
Anti-ban35, 35 articles
Traffic6, 6 articles
Web data application25, 25 articles
Web data collection358, 358 articles
Web data collection ethics3, 3 articles
Web data collection legality16, 16 articles
Web scraping APIs63, 63 articles
Zyte API59, 59 articles
Scrapy48, 48 articles
Scrapy Cloud10, 10 articles
Web Scraping Copilot12, 12 articles
AI & Machine Learning1, 1 articles
Automotive2, 2 articles
E-commerce & retail26, 26 articles
Entertainment & Streaming2, 2 articles
Financial Services8, 8 articles
Government2, 2 articles
Market Research & Intelligence3, 3 articles
Media & publishing8, 8 articles
Real Estate2, 2 articles
Recruitment & HR3, 3 articles
Transportation & Logistics2, 2 articles
Travel & hospitality2, 2 articles
Extract Summit25, 25 articles
PyCon1, 1 articles

Appearance

Discord Community
BlogOpen SourceA Deep Dive into Zyte's Open-Source Libraries
ArticleOpen Source

A Deep Dive into Zyte's Open-Source Libraries

Discover how Zyte’s open-source libraries like ClearHTML, Extruct, Chomp.js, and more simplify web data extraction and processing.

N

Neha Setia Nagpal

1 min read · December 19, 2024

A Deep Dive into Zyte's Open-Source Libraries

Are you tired of struggling to extract valuable insights from unstructured data? Dealing with web data can feel like navigating through a maze, especially when you're handling multiple data formats and structures. The good news is that Zyte's suite of open-source libraries provides powerful solutions to streamline your data extraction processes.

Understanding Your Web Data Processing Needs

Before diving into specific tools, it's important to recognize the challenges that make web data processing complex. From unstructured HTML to embedded metadata, each website presents unique challenges that require specialized approaches. This is where Zyte's libraries come in, offering targeted solutions for each aspect of data extraction and processing.

Core Data Extraction Libraries

The foundation of effective web data processing lies in having the right set of core extraction tools. While many developers struggle with basic data extraction, Zyte's core libraries form a powerful backbone that simplifies these fundamental challenges. Think of these libraries as your essential toolkit – each one designed to handle a specific aspect of web data extraction, working together seamlessly to transform complex web pages into structured, usable data.

Let's explore each of these foundation libraries and discover how they can revolutionize your data extraction workflow. From parsing HTML to handling complex JSON structures, these tools provide the building blocks for robust data processing pipelines.

Working with Zyte Parsers

At the foundation of any web data extraction process lies Zyte Parsers. This versatile library provides specialized functions for extracting data from various webpage elements. When you're facing complex webpage layouts or nested HTML structures, Zyte Parsers offers the precision and flexibility needed to extract exactly what you need. It serves as your first line of defense against unstructured web data, making the initial extraction process smoother and more reliable.

Mastering Metadata with Extruct

Working with embedded metadata in HTML markup can be particularly challenging, but Extruct transforms this challenge into an opportunity. This Python library excels at extracting various types of metadata, from JSON-LD to microdata in HTML5 markup. What makes Extruct particularly powerful is its ability to handle multiple metadata formats simultaneously, ensuring you capture all important structured information hidden within web pages.

Cleaning Data Using ClearHTML

Data cleaning is often the unsung hero of successful data extraction, and ClearHTML takes center stage in this crucial process. Think of it as your personal HTML housekeeping service. It normalizes HTML content, removes unwanted tags and attributes, and prepares your data for downstream processing. The beauty of ClearHTML lies in its ability to maintain the essential structure while eliminating noise that could interfere with extraction.

Advanced JSON Processing with Chomp.js

When dealing with JavaScript objects embedded in HTML pages, you need something more robust than basic JSON processing. Chomp.js steps up to this challenge, offering powerful parsing capabilities that outperform standard JSON.loads. It handles complex nested structures effortlessly while maintaining efficient memory management, even when processing large objects.

Querying JSON with JMESPath

For those working extensively with JSON documents, the Python implementation of JMESPath brings elegant query capabilities to your toolkit. Its intuitive syntax makes navigating through JSON structures feel natural, whether you're performing simple data lookups or complex transformations.

Specialized Processing Tools

While the core libraries handle the fundamentals, real-world data extraction often requires more specialized tools for specific types of data. This is where Zyte's specialized processing tools come into play. These advanced libraries are designed to tackle specific challenges that developers frequently encounter when working with web data – from parsing dates in various formats to handling financial data across different currencies.

These specialized tools build upon the foundation laid by the core libraries, offering precise solutions for specific data types. Whether you're dealing with embedded JavaScript code, complex date formats, or international pricing data, these tools provide the extra layer of sophistication needed for professional-grade data extraction.

Converting Data with JS2XML

JS2XML revolutionizes the way we handle JavaScript code embedded in web pages. Instead of wrestling with regular expressions, you can now convert JSON code into XML documents seamlessly. This approach enables XPath-based data extraction, providing a more robust and reliable method for handling embedded JavaScript data.

Handling Dates Using DateParser

Date formats across websites can vary wildly, making extraction and standardization a significant challenge. DateParser tackles this head-on, offering sophisticated parsing capabilities for dates in various formats. From simple date strings to complex temporal expressions, DateParser handles it all while maintaining awareness of timezones and international formats.

Processing Prices with PriceParser

In the world of e-commerce and financial data, precision is paramount. PriceParser specializes in extracting prices from unstructured data, handling various formats and currencies with ease. Whether you're dealing with different decimal notations or currency symbols, PriceParser ensures accurate extraction and standardization of your financial data.

Managing Numbers via NumberParser

Complementing the specialized parsers is NumberParser, designed for comprehensive numeric data processing. It handles various number formats and notations, making it invaluable when working with scientific data or international number systems. The tool's contextual understanding ensures accurate extraction even when numbers are embedded in complex text structures.

Best Practices and Implementation

Success in data processing isn't just about having the right tools; it's about using them effectively together. Consider starting your processing pipeline with ClearHTML to clean your data, then applying specialized parsers based on your specific needs. When dealing with complex JavaScript data, combining JS2XML with JMESPath can provide powerful extraction capabilities.

The real power of these libraries becomes apparent when handling real-world data processing challenges. For instance, when scraping e-commerce sites, you might use ClearHTML to clean the page content, PriceParser to extract and standardize prices, and DateParser to handle publication dates and availability information.

Conclusion

The landscape of web data processing continues to evolve, and Zyte's libraries evolve with it. Whether you're building a web scraping solution or processing unstructured data, these tools provide the foundation needed for reliable, efficient data extraction. By understanding and effectively utilizing these libraries, you can transform the chaos of unstructured web data into clear, actionable insights.

Stay tuned for updates and new features as Zyte continues to enhance these tools, making web data processing even more accessible and efficient for developers worldwide.

Additional resources

  • Read Zyte Docs on Web Scraping

  • Try Web Scraping with Zyte API

  • Follow us on LinkedIn

  • Join our Discord Community

Try Zyte API

Build your first scraper in minutes

Free trial, no credit card. From a single request to production in an afternoon.

Get started
Open Source
N

Neha Setia Nagpal

More from this author

In this article

  • Understanding Your Web Data Processing Needs
  • Core Data Extraction Libraries
  • Working with Zyte Parsers
  • Mastering Metadata with Extruct
  • Cleaning Data Using ClearHTML
  • Advanced JSON Processing with Chomp.js
  • Querying JSON with JMESPath
  • Specialized Processing Tools
  • Converting Data with JS2XML
  • Handling Dates Using DateParser
  • Processing Prices with PriceParser
  • Managing Numbers via NumberParser
  • Best Practices and Implementation
  • Conclusion
  • Additional resources

Follow

Get the latest

Zyte and the data web in your inbox — or wherever you already are.

Subscribe

Or follow elsewhere

Continue reading

Scrapy in 2026: New release brings modern async crawling standards
Open Source

Scrapy in 2026: New release brings modern async crawling standards

Scrapy 2.14.0 is released with a major under-the-hood modernization. Say goodbye to Twisted Deferreds.

Robert Andrews·6 min·January 12, 2026
The new economics of web data: Smaller scraping just got cheaper
Open Source

The new economics of web data: Smaller scraping just got cheaper

Smarter tools and AI-driven automation are rewriting the rules of web scraping. As costs fall and setup barriers vanish, smaller teams can now compete at scale, reshaping how the web’s data economy works.

Theresia Tanzil·2 mins·October 6, 2025
Zyte Blog — field notes from the world of data extraction
Open Source

Portia: The Open-Source Visual Web Scraper

We’re proud to announce the developer release of Portia, our new open source visual scraping tool based on Scrapy. Check out this video!

Shane Evans·< 1 Mins·April 1, 2014

The Community · Newsletter

The best of Zyte and the data web, in your inbox.

One curated edition — new articles, product updates, and the stories shaping the data web. No noise.

G2.com

Capterra.com

Proxyway.com

EWDCI logoMost loved workplace certificateZyte rewardISO 27001 iconG2 rewardG2 rewardG2 reward

© Zyte Group Limited 2026