{"repo":"html-extract/hext","free":true,"listed":false,"github":"https://github.com/html-extract/hext","clone":"git clone https://github.com/html-extract/hext.git","description":"Domain-specific language for extracting structured data from HTML documents","language":"C++","stars":55,"topics":["cpp","html-extraction","scraping","html","dsl","data-extraction","python","node"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"Hext — Extract Data from HTML Hext is a domain-specific language for extracting structured data from HTML documents. Hext is written in C++ but language bindings are available for Python, Node, JavaScript, Ruby and PHP. See https://hext.thomastrapp.com for documentation, installation instructions and a live demo. The Hext project is released under the terms of the Apache License v2.0. Example Suppose you want to extract all hyperlinks from a web page. Hyperlinks have an anchor tag &lt;a&gt;, an attribute called href and a text that visitors can click. The following Hext template will produce a dictionary for every matched element. Each dictionary will contain the keys link and title which refer to the href attribute and the text content of the matched &lt;a&gt;. # Extract links and their text &raquo; Load example in editor Visit Hext's project page to learn more about Hext. For examples that use the libhext C++ library check out /libhext/examples and libhext's C++ library overview. Components of this Project htmlext : Command line utility that applies Hext templates to an HTML document and produces JSON. libhext : C++ library that contains a Hext parser but also allows for customization. libhext-test : Unit tests for libhext. Hext bindings : Bindings for scripting languages. There are extensions for Node.js, Python, Ruby and PHP that are able to parse Hext and extract values from HTML. Project layout ├── build Build directory for htmlext ├── cmake CMake modules used by the pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/html-extract","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/html-extract/hext/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."}