awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
fb55 avatar

fb55/htmlparser2

0
View on GitHub↗
4,774 stars·398 forks·TypeScript·MIT·17 viewsfeedic.com/htmlparser2↗

Htmlparser2

htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream processing. It functions as an HTML and XML parser that converts markup strings into structured object trees, alongside a streaming markup parser designed for memory-efficient processing of large documents.

The project includes a DOM manipulation library for querying, modifying, and serializing document object model trees. It also provides a web feed parser to extract structured metadata and entries from RSS, RDF, and Atom feeds.

The library covers broad capabilities in data parsing, including the conversion of documents to DOM trees and the execution of web scraping workflows. These tools allow for the search and modification of parsed document structures before they are converted back into strings.

Features

  • HTML and XML Parsing - High-performance library for extracting and processing data from HTML and XML markup documents.
  • DOM Tree Construction - Converts markup strings into a structured object tree with support for XML mode and character indices.
  • DOM Manipulation - Provides a suite of tools for parsing and programmatically manipulating HTML/DOM in server-side environments.
  • Streaming Parsers - Implements a memory-efficient parser that processes large markup documents incrementally.
  • XML and HTML Document Parsers - Fast and forgiving parser that converts HTML and XML content into in-memory document trees.
  • State-Machine Parsers - Uses a state-machine based approach to convert input streams into tokens for complex HTML and XML syntax.
  • Stream-Based Text Processing - Consumes markup data incrementally through a writable interface to process large documents without full memory loading.
  • DOM Tree Construction - Transforms a sequence of parsed tokens into a hierarchical Document Object Model for programmatic use.
  • Node Querying - Provides tools for searching parsed document trees using IDs, tags, and custom filters to retrieve content.
  • DOM Manipulation Libraries - Ships a comprehensive toolset for selecting, modifying, and serializing document object model trees.
  • DOM Serialization - Converts a modified structured document object model back into an HTML or XML string.
  • Incremental Parsing - Offers incremental parsing of documents using callbacks to process data in chunks.
  • Stream-Based Parsing - Provides event-driven parsing for large XML and HTML files to minimize memory consumption.
  • Feed Parsing Libraries - Provides a library for decoding and processing various web feed formats like RSS, RDF, and Atom.
  • Large Scale XML Processing - Processes massive markup files using streaming and callbacks to avoid high memory usage.
  • Syndication Feed Parsers - Extracts structured metadata and entries from RSS, RDF, and Atom syndication feeds.
  • Event-Driven Callbacks - Implements a callback-driven mechanism that triggers events upon encountering specific markup tokens.
  • Web Scraping - Provides the parsing foundations for extracting structured data from websites and web feeds.
  • Parsing Tools - HTML and XML parser.

Star history

Star history chart for fb55/htmlparser2Star history chart for fb55/htmlparser2

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does fb55/htmlparser2 do?

htmlparser2 is a collection of tools for high-performance markup parsing, DOM manipulation, and incremental stream processing. It functions as an HTML and XML parser that converts markup strings into structured object trees, alongside a streaming markup parser designed for memory-efficient processing of large documents.

What are the main features of fb55/htmlparser2?

The main features of fb55/htmlparser2 are: HTML and XML Parsing, DOM Tree Construction, DOM Manipulation, Streaming Parsers, XML and HTML Document Parsers, State-Machine Parsers, Stream-Based Text Processing, Node Querying.

What are some open-source alternatives to fb55/htmlparser2?

Open-source alternatives to fb55/htmlparser2 include: inikulin/parse5 — parse5 is a WHATWG HTML parser and serializer for Node.js. It transforms HTML strings into a document object model and… scinfu/swiftsoup — SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a… sparklemotion/nokogiri — Nokogiri is an XML and HTML parsing library that builds navigable document trees from strings, files, or URLs using… tmpvar/jsdom — jsdom is a Node.js implementation of web standards that functions as a headless browser emulator. It provides a… martinblech/xmltodict — xmltodict is a Python library that provides bidirectional serialization between XML documents and dictionaries. It… symfony/dom-crawler — This project is an HTML and XML DOM parser designed for loading and navigating the structure of web documents to…

Open-source alternatives to Htmlparser2

Similar open-source projects, ranked by how many features they share with Htmlparser2.
  • inikulin/parse5inikulin avatar

    inikulin/parse5

    3,903View on GitHub↗

    parse5 is a WHATWG HTML parser and serializer for Node.js. It transforms HTML strings into a document object model and converts those trees back into valid HTML strings, following the logic defined by the HTML Living Standard. The project functions as a streaming HTML processor, using incremental parsing to handle large documents in chunks. It includes an HTML5 compliant tokenizer that uses a state-machine approach to break input into tokens according to official web specifications. The toolset covers HTML document parsing, serialization, and real-time rewriting via streams. These capabiliti

    TypeScript
    View on GitHub↗3,903
  • scinfu/swiftsoupscinfu avatar

    scinfu/SwiftSoup

    5,087View on GitHub↗

    SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a structured document object model. It provides the core infrastructure to parse web content into a traversable tree, enabling programmatic access to page elements across iOS, macOS, and Linux. The library features a CSS selector engine for data extraction and a whitelist-based sanitization system to remove unsafe tags and attributes from user-submitted content. It optimizes repetitive document queries through memoized query caching. The project covers DOM manipulation for upd

    Swift
    View on GitHub↗5,087
  • sparklemotion/nokogirisparklemotion avatar

    sparklemotion/nokogiri

    6,236View on GitHub↗

    Nokogiri is an XML and HTML parsing library that builds navigable document trees from strings, files, or URLs using native C parsers for speed and standards compliance. It provides a CSS selector engine that translates CSS3 selectors into XPath expressions for querying nodes, an XPath query interface with namespace support, a document manipulation toolkit for modifying parsed documents, XSD schema validation, and XSLT transformation capabilities. The library wraps libxml2 and libxslt C libraries with Ruby bindings for high-performance parsing, and integrates Google's Gumbo parser for standard

    Clibxml2libxsltnokogiri
    View on GitHub↗6,236
  • tmpvar/jsdomtmpvar avatar

    tmpvar/jsdom

    21,591View on GitHub↗

    jsdom is a Node.js implementation of web standards that functions as a headless browser emulator. It provides a JavaScript execution environment and an HTML and XML parser to simulate a browser environment on the server side, implementing various web APIs and W3C standards. The project distinguishes itself by providing a sandboxed runtime for executing scripts embedded in HTML or external files. It includes specialized polyfills for the Canvas API and manages session state through HTTP cookie management. Its broader capabilities cover network interaction via request interception and resource

    JavaScript
    View on GitHub↗21,591
  • See all 30 alternatives to Htmlparser2→