SkillAgentSearch skills...

Markupever

The fast, most optimal, and correct HTML & XML parsing library for Python written in Rust.

Install / Use

/learn @awolverp/Markupever
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src="https://github.com/user-attachments/assets/4fc58bbf-3fde-47a1-aa42-ae100ba1029a" alt="MarkupEver"> </p> <p align="center"> <em>The fast, most optimal, and correct HTML & XML parsing library</em> </p> <p align="center"> <a href="https://awolverp.github.io/markupever" target="_blank"><b>Documentation</b></a> | <a href="https://github.com/awolverp/cachebox/releases"><b>Releases</b></a> | <a href="https://awolverp.github.io/markupever/#performance" target="_blank"><b>Benchmarks</b></a> </p>

text image image image python-test download


MarkupEver is a modern, fast (high-performance), XML & HTML languages parsing library written in Rust.

KEY FEATURES:

  • 🚀 Fast: Very high performance and fast (thanks to html5ever and selectors).
  • 🔥 Easy: Designed to be easy to use and learn. <abbr title="also known as auto-complete, autocompletion, IntelliSense">Completion</abbr> everywhere.
  • Low-Memory: Written in Rust. Uses low memory. Don't worry about memory leaks. Uses Rust memory allocator.
  • 🧶 Thread-safe: Completely thread-safe.
  • 🎯 Quering: Use your CSS knowledge for selecting elements from a HTML or XML document.
  • Streaming: Incremental/streaming parsing support.

Installation

You can install MarkupEver by using pip:

<small>It's recommended to use virtual environments.</small>

$ pip3 install markupever

Example

Parse

Parsing a HTML content and selecting elements:

import markupever

dom = markupever.parse_file("file.html", "html")
# Or parse a HTML content directly:
# dom = markupever.parse("... content ...", "html")

for element in dom.select("div.section > p:child-nth(1)"):
    print(element.text())

Create DOM

Creating a DOM from zero:

from markupever import dom

dom = dom.TreeDom()
root: dom.Document = dom.root()

root.create_doctype("html")

html = root.create_element("html", {"lang": "en"})
body = html.create_element("body")
body.create_text("Hello Everyone ...")

print(root.serialize())
# <!DOCTYPE html>
# <html lang="en">
#   <body>Hello Everyone ...</body>
# </html>

Related Skills

View on GitHub
GitHub Stars35
CategoryDevelopment
Updated1d ago
Forks1

Languages

Rust

Security Score

95/100

Audited on Mar 26, 2026

No findings