awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
cheeriojs avatar

cheeriojs/cheerio

0
View on GitHub↗
30,386 星标·1,697 分支·TypeScript·MIT·9 次浏览cheerio.js.org↗

Cheerio

Cheerio is an HTML and XML parsing library and server-side DOM implementation. It functions as a markup manipulation tool and CSS selector engine, allowing users to parse, query, and modify HTML or XML documents in non-browser environments.

The project provides a DOM-like tree representation of markup strings, enabling programmatic addition, removal, and modification of elements and attributes. It features a prototype-based plugin system that allows the extension of core functionality by adding custom methods to the document prototype.

The library covers a broad range of capabilities including CSS selector querying, recursive tree traversal, and element collection filtering. It also includes utilities for attribute manipulation, CSS class management, node positioning, and the rendering of manipulated trees back into serialized HTML or XML strings.

Features

  • Markup Parsers - Transforms raw HTML and XML strings into a structured data format using a dedicated parsing engine.
  • HTML and XML Parsing - Transforms HTML or XML strings into a traversable data structure for analysis and modification.
  • HTML Parsing - Provides capabilities for converting raw HTML strings into a traversable structure for analysis and transformation.
  • HTML Manipulation - Updates HTML or XML content by adding, removing, or changing elements and attributes.
  • Markup Extraction - Converts modified documents or specific selections into HTML, outer HTML, or plain text formats.
  • Content Extraction - Retrieves combined text content or inner HTML strings from targeted elements.
  • Output Format Rendering - Renders internal node trees back into serialized HTML or XML strings for final output.
  • Web Data Extraction - Facilitates extracting structured data and text from HTML or XML pages using precise CSS selectors.
  • DOM Traversers - Navigates the document hierarchy using parent, sibling, and child relationships to locate related elements.
  • CSS Selector Engines - Implements a CSS-style selector engine to query and locate elements within HTML and XML document structures.
  • Structural Navigation - Enables navigation of the document hierarchy through recursive traversal of parent, child, and sibling node pointers.
  • In-Memory DOM Representations - Provides an in-memory DOM representation of markup strings for efficient navigation and manipulation.
  • Content Manipulation - Replaces the internal HTML or text of matched elements with new provided strings.
  • DOM Node Positioning - Inserts, appends, prepends, or replaces elements and content at precise positions within the document tree.
  • Element Attributes - Provides methods to retrieve, set, and remove properties and data attributes from matched elements.
  • Static String Renderers - Converts a manipulated document tree back into a static HTML or XML string for final output.
  • Dynamic Class Management - Provides utilities to add, remove, toggle, and verify CSS classes on matched elements.
  • Collection Filtering - Refines sets of matched elements by including or excluding items based on selectors or predicate functions.
  • Content Processing - Enables programmatic parsing and updating of static HTML files to automate the injection of links and metadata.
  • DOM Manipulation - Fast, flexible jQuery-like DOM manipulation.
  • General Utilities - Server-side implementation of jQuery.
  • Node.js Frameworks and Tools - Server-side jQuery implementation.

Star 历史

cheeriojs/cheerio 的 Star 历史图表cheeriojs/cheerio 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

cheeriojs/cheerio 是做什么的?

Cheerio is an HTML and XML parsing library and server-side DOM implementation. It functions as a markup manipulation tool and CSS selector engine, allowing users to parse, query, and modify HTML or XML documents in non-browser environments.

cheeriojs/cheerio 的主要功能有哪些?

cheeriojs/cheerio 的主要功能包括:Markup Parsers, HTML and XML Parsing, HTML Parsing, HTML Manipulation, Markup Extraction, Content Extraction, Output Format Rendering, Web Data Extraction。

cheeriojs/cheerio 有哪些开源替代品?

cheeriojs/cheerio 的开源替代品包括: apify/crawlee-python — Crawlee-python is a web crawling framework for building scalable scrapers using Python. It serves as a comprehensive… oneuijs/you-dont-need-jquery — This project is a reference guide and collection of implementation patterns for replacing legacy libraries with native… sparklemotion/nokogiri — Nokogiri is an XML and HTML parsing library that builds navigable document trees from strings, files, or URLs using… anglesharp/anglesharp — AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a… jhy/jsoup — Jsoup is a Java library designed for parsing, extracting, and manipulating HTML and XML content. It provides a… lorien/web-scraping — This project is a comprehensive resource directory for web data extraction, providing a curated collection of tools…

Cheerio 的开源替代方案

相似的开源项目,按与 Cheerio 的功能重合度排序。
  • apify/crawlee-pythonapify 的头像

    apify/crawlee-python

    8,097在 GitHub 上查看↗

    Crawlee-python is a web crawling framework for building scalable scrapers using Python. It serves as a comprehensive tool for web scraping automation, providing a system to extract structured data from websites using both lightweight HTTP requests and headless browser automation. The framework is distinguished by its anti-bot evasion capabilities, which include browser fingerprint impersonation and tiered proxy rotation to bypass detection systems and solve challenges such as Cloudflare. It also incorporates artificial intelligence for autonomous website navigation and schema-based data extra

    Pythonapifyautomationbeautifulsoup
    在 GitHub 上查看↗8,097
  • oneuijs/you-dont-need-jqueryoneuijs 的头像

    oneuijs/You-Dont-Need-jQuery

    20,161在 GitHub 上查看↗

    This project is a reference guide and collection of implementation patterns for replacing legacy libraries with native JavaScript. It provides a vanilla JavaScript reference guide, a modern web API cookbook, and a DOM manipulation cheat sheet to help migrate frontend dependencies to standard browser APIs. The project focuses on mapping library functions to native interfaces for DOM manipulation, network requests, and event handling. It includes a utility pattern library for common tasks such as string cleaning, type checking, and element styling. The covered capabilities include DOM element

    JavaScript
    在 GitHub 上查看↗20,161
  • sparklemotion/nokogirisparklemotion 的头像

    sparklemotion/nokogiri

    6,236在 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
    在 GitHub 上查看↗6,236
  • anglesharp/anglesharpAngleSharp 的头像

    AngleSharp/AngleSharp

    5,499在 GitHub 上查看↗

    AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a W3C compliant document object model. It functions as a programmatic HTML generator and a CSS selector engine for querying and locating specific elements within a DOM. The project provides tools for simulating browser environments to automate web interactions, navigate URLs, and submit forms. It includes a dedicated HTML and CSS minifier to reduce the file size of web assets by removing unnecessary characters. The library supports HTML DOM manipulation and the extraction of s

    C#angle-bracketanglesharpc-sharp
    在 GitHub 上查看↗5,499
查看 Cheerio 的所有 30 个替代方案→