{"id":32678657,"url":"https://github.com/awolverp/markupever","last_synced_at":"2026-01-26T15:34:50.741Z","repository":{"id":280457483,"uuid":"910137766","full_name":"awolverp/markupever","owner":"awolverp","description":"The fast, most optimal, and correct HTML \u0026 XML parsing library for Python written in Rust.","archived":false,"fork":false,"pushed_at":"2025-05-22T07:46:20.000Z","size":1386,"stargazers_count":25,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:24:00.363Z","etag":null,"topics":["html5ever","library","markup-languages","parser","python","rust","scraping","selectors","web-scraping"],"latest_commit_sha":null,"homepage":"https://awolverp.github.io/markupever","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awolverp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-30T15:32:00.000Z","updated_at":"2025-10-23T08:53:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b265860-c06a-41dc-8f23-95e4fe4a0be4","html_url":"https://github.com/awolverp/markupever","commit_stats":null,"previous_names":["awolverp/markupever"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/awolverp/markupever","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awolverp%2Fmarkupever","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awolverp%2Fmarkupever/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awolverp%2Fmarkupever/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awolverp%2Fmarkupever/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awolverp","download_url":"https://codeload.github.com/awolverp/markupever/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awolverp%2Fmarkupever/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html5ever","library","markup-languages","parser","python","rust","scraping","selectors","web-scraping"],"created_at":"2025-11-01T08:01:43.348Z","updated_at":"2026-01-26T15:34:50.736Z","avatar_url":"https://github.com/awolverp.png","language":"Rust","funding_links":[],"categories":["Rust","Web Scraping \u0026 HTML"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/4fc58bbf-3fde-47a1-aa42-ae100ba1029a\" alt=\"MarkupEver\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eThe fast, most optimal, and correct HTML \u0026 XML parsing library\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://awolverp.github.io/markupever\" target=\"_blank\"\u003e\u003cb\u003eDocumentation\u003c/b\u003e\u003c/a\u003e | \u003ca href=\"https://github.com/awolverp/cachebox/releases\"\u003e\u003cb\u003eReleases\u003c/b\u003e\u003c/a\u003e | \u003ca href=\"https://awolverp.github.io/markupever/#performance\" target=\"_blank\"\u003e\u003cb\u003eBenchmarks\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n![text](https://img.shields.io/badge/coverage-100-08000)\n![image](https://img.shields.io/pypi/v/markupever.svg)\n![image](https://img.shields.io/pypi/l/markupever.svg)\n![image](https://img.shields.io/pypi/pyversions/markupever.svg)\n![python-test](https://github.com/awolverp/markupever/actions/workflows/test.yml/badge.svg)\n![download](https://img.shields.io/pypi/dm/markupever?style=flat-square\u0026color=%23314bb5)\n\n------\n\nMarkupEver is a modern, fast (high-performance), XML \u0026 HTML languages parsing library written in Rust.\n\n**KEY FEATURES:**\n* 🚀 **Fast**: Very high performance and fast (thanks to **[html5ever](https://github.com/servo/html5ever)** and **[selectors](https://github.com/servo/stylo/tree/main/selectors)**).\n* 🔥 **Easy**: Designed to be easy to use and learn. \u003cabbr title=\"also known as auto-complete, autocompletion, IntelliSense\"\u003eCompletion\u003c/abbr\u003e everywhere.\n* ✨ **Low-Memory**: Written in Rust. Uses low memory. Don't worry about memory leaks. Uses Rust memory allocator.\n* 🧶 **Thread-safe**: Completely thread-safe. \n* 🎯 **Quering**: Use your **CSS** knowledge for selecting elements from a HTML or XML document.\n* ⚡ **Streaming**: Incremental/streaming parsing support.\n\n## Installation\nYou can install MarkupEver by using **pip**:\n\n\u003csmall\u003eIt's recommended to use virtual environments.\u003c/small\u003e\n\n```console\n$ pip3 install markupever\n```\n\n## Example\n\n### Parse\nParsing a HTML content and selecting elements:\n\n```python\nimport markupever\n\ndom = markupever.parse_file(\"file.html\", \"html\")\n# Or parse a HTML content directly:\n# dom = markupever.parse(\"... content ...\", \"html\")\n\nfor element in dom.select(\"div.section \u003e p:child-nth(1)\"):\n    print(element.text())\n```\n\n### Create DOM\nCreating a DOM from zero:\n\n```python\nfrom markupever import dom\n\ndom = dom.TreeDom()\nroot: dom.Document = dom.root()\n\nroot.create_doctype(\"html\")\n\nhtml = root.create_element(\"html\", {\"lang\": \"en\"})\nbody = html.create_element(\"body\")\nbody.create_text(\"Hello Everyone ...\")\n\nprint(root.serialize())\n# \u003c!DOCTYPE html\u003e\n# \u003chtml lang=\"en\"\u003e\n#   \u003cbody\u003eHello Everyone ...\u003c/body\u003e\n# \u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawolverp%2Fmarkupever","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawolverp%2Fmarkupever","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawolverp%2Fmarkupever/lists"}