bisibility — Track Google rankings and Search Console insights. Free during beta.
Try bisibility freeOur product
Favicon of htmlparser2

htmlparser2

PublishedLast updated

htmlparser2 is a streaming Node.js HTML and XML parser, offering a streaming, event-driven API with a forgiving approach to malformed markup.

Screenshot of htmlparser2 website

htmlparser2 is a low-level, high-performance HTML and XML parser for Node.js that prioritizes speed through a streaming, event-driven architecture.

Key Features:

  • Event-Based Parsing - Process markup through parser events
  • Streaming API - Event-driven parsing for memory-efficient processing of large documents
  • Forgiving Mode - Handles broken and malformed HTML without errors
  • Rich Ecosystem - Includes domhandler, domutils, and css-select for full DOM operations
  • XML Support - Parses both HTML and XML with configurable strictness

Whether you're processing large HTML datasets, building custom extraction pipelines, or need a fast parser for real-time scraping, htmlparser2 provides a flexible, low-level parsing API.

Categories:
Features:
HTML ParsingXML ParsingCSS SelectorsReal-Time StreamingOpen Source

Share:

bisibility

Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.

Try bisibility freeOur product

Source code

fb55/htmlparser2

  • Stars

    4.8K
  • Forks

    405
  • Last commit

    2026-10-15
  • License

    MIT
  • Language

    TypeScript

Metrics recorded 2026-10-16

Repository details

License source: Repository license file

View Repository

Similar to htmlparser2

Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  

Sources

github.com

Verified against the fb55/htmlparser2 repository and the npm package.