{"repo":"tox-dev/turbohtml","free":true,"listed":false,"github":"https://github.com/tox-dev/turbohtml","clone":"git clone https://github.com/tox-dev/turbohtml.git","description":"A fast, fully typed HTML toolkit for Python. Escape, unescape, parse, select, and serialize HTML from one library, powered by a C-accelerated core.","language":"C","stars":20,"topics":["c-extension","css-selectors","encoding-detection","free-threading","html","html-parser","html5","markdown","minifier","python"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"turbohtml A fast, fully typed HTML toolkit for Python with a C-accelerated core: tokenize, parse, query, edit, serialize, and extract HTML several times faster than the pure-Python alternatives, with free-threading support. The hot path is C; a thin typed facade is the only Python you touch. It is not a drop-in for the libraries it replaces. Install Wheels ship per interpreter for CPython 3.10–3.15 (including free-threading), so there is nothing to compile. Quickstart Parse a document, query it with a CSS selector, and serialize a node back to HTML with the escaping you choose: Each renderer takes one configuration object — Html for serialize / encode , Markdown for to markdown , and PlainText for to text / to annotated text — instead of a long keyword list, so options stay grouped and discoverable. turbohtml models text as real child nodes following the WHATWG DOM shape, so node[i] indexes children and attributes are reached through node.attrs . The dominant scraping workflow — isolate the article and hand it to a language model as Markdown — is two calls: main content scores out the navigation and sidebars, and to markdown renders the article, replacing a readability-plus-markdownify pipeline with no intermediate string. Capabilities Task API ----------------- ------------------------------------------------------------------------------------------------------ Escape / unescape escape , unescape — byte-for-byte with html.escape / html.unescape Tokenize tokenize , Tokenizer","default_branch":null,"files":null,"tree":[],"storefront":"/r/tox-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tox-dev/turbohtml/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}