lol-html VS hn-search

Compare lol-html vs hn-search and see what are their differences.

lol-html

Low output latency streaming HTML parser/rewriter with CSS selector-based API (by cloudflare)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
lol-html hn-search
8 1,635
1,400 524
1.1% 0.2%
5.7 2.9
about 2 months ago 6 months ago
Rust TypeScript
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

lol-html

Posts with mentions or reviews of lol-html. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-23.
  • Ask HN: A fast, Rust HTML parser that works?
    4 projects | news.ycombinator.com | 23 Feb 2023
    So I'm doing some web scraping in Rust, and so I will need to parse HTML. [scraper](https://docs.rs/scraper/latest/scraper/) (which uses [html5ever](https://github.com/servo/html5ever)) is doing fine except that it's the bottleneck of my application.

    So I need a faster parser. I've tried [tl](https://docs.rs/tl/latest/tl/) which would've been perfect except that it doesn't actually work on the HTML I have. When I try to `query_selector` the elements I need, it returns nothing.

    [Kuchiki](https://docs.rs/kuchiki/latest/kuchiki/) is abandonded.

    I couldn't figure out how to get [lol-html](https://github.com/cloudflare/lol-html) to work for me (it's designed for re-writing HTML, whatever that means). It doesn't seem to have an API to extract the inner text of an element.

    [html5gum](https://github.com/untitaker/html5gum) seems to be just an HTML tokenizer, or otherwise just too low-level. I have not yet tried [quick-xml](https://github.com/tafia/quick-xml/) but judging from the README, it's pretty low-level too. I mean, if these are the only options left then I will try them. Otherwise, I would love to use a parser that's faster but as ergonomic as `scraper` or `tl`.

    At this point, I would be happy with an Lxml bridge/port of some sort. I don't need to mutate HTML, just parse and read data from it.

  • How much Rust work is actually going on at Cloudflare?
    2 projects | /r/rust | 15 Jan 2023
    I'm also in the Workers org but I have had a bit of interaction with Rust. There's some Rust in the Workers runtime using lol-html for HTMLRewriter as well as some tooling and there's the full blown workers-rs framework that I work on, but that's about it for the Rust I work on regularly.
  • Is there a library for manipulating HTML?
    3 projects | /r/rust | 17 Dec 2022
  • pup: Parsing HTML at the Command Line
    7 projects | news.ycombinator.com | 30 Nov 2022
  • Texting Robots: Taming robots.txt with Rust and 34 million tests
    4 projects | /r/rust | 28 Mar 2022
    Thanks again and happy to answer any questions! My current unreleased Rust projects include a web crawler that uses Tokio + Tokio Console + Reqwest with this crate for robots.txt and a fast text extraction library using lol-html that I am planning to sprinkle with some minimal ML to get Readability.js style intelligent extraction (with training in Python). See Fathom for an example of the ML approach I'll likely take.
  • Like JQ, but for HTML
    21 projects | news.ycombinator.com | 7 Sep 2021
    I’d like to see a tool using lol-html [0] and their CSS selector API as a streaming HTML editor.

    [0] https://github.com/cloudflare/lol-html

  • Things you can’t do in Rust (and what to do instead)
    6 projects | news.ycombinator.com | 15 May 2021
  • Problems with building a backend app in Rust in 2020
    2 projects | /r/rust | 21 Dec 2020
    Cloudflare has open sourced lol-html, a "Low output latency streaming HTML parser/rewriter with CSS selector-based API". Is that what you are looking for?

hn-search

Posts with mentions or reviews of hn-search. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-07.
  • Rule of Thumb: Anything that looks fancy is not worth you time
    1 project | news.ycombinator.com | 8 May 2024
    - Ads with Psychological tricks

    Truly good websites have around 2 facts per 10 word sentence, and get instantly to the chase. Also: good websites give you the names of all their competitors/alternative websites before showing their own stuff, and give you further reading.

    Right now the world of technology is supposedly more innovative than ever, but somehow Wikipedia (https://www.wikipedia.org/) and Search Hackernews (https://hn.algolia.com/) beat billion dollar search engines.

    Articles written decades ago are still unsurpassed in terms of quality and ease of understanding, but the best modern websites can do is textbook explanations. It is time society graduates from boilerplate buzzword textbook culture.

    Now the gems of the internet are slowly being buried beneath mountains of trash.

    If something sounds boilerplate it isn't good enough.

    Don't bother saying something that has been said before, and better.

  • What makes a translation great
    2 projects | news.ycombinator.com | 7 May 2024
    >for more detail: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

    Oh, I see. We actually discussed Pound about four years ago - just a little back and forth about the ABC of Reading: https://news.ycombinator.com/item?id=24196681

    >What's your explanation of why Pound went Fascist?

    I'm not sure I particularly have one; I haven't read any of his longer political or cultural (i.e. non-literary) works. I just think it's silly to correlate an approach to translation that you dislike with fascism. Especially as I'm not sure it even makes sense on its own terms: I can only read your comment as 'lazy translator? Figures that he would be a fascist', but if I imagine the type of translation a fascist would approve of, the approach I picture is fastidious, fussy, concerned with fidelity to the point of stickler-ishness. (Isn't that from where we get 'grammar nazi'?)

    And oh, well, since you ask I'll take a shy at it: my vague sense is that he became fascist because saw a society in decline due to it becoming more and more a sham society: opulence without virtue, power without vigour, money no longer tied to actually existing goods. (Of course, all of this shades easily into antisemitism.) He saw fascism as the answer; It's easier to see in retrospect that it wasn't.

  • Zed Decoded: Linux When? – Zed Blog
    7 projects | news.ycombinator.com | 7 May 2024
    "multiplayer notepad" goes back 15 years at least - https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... notepad&sort=byDate&type=comment

    it was used back with a popular website which opened a text document and anyone viewing could type, but I can't remember the name. That became a thing in Google Docs, Microsoft Office, Floobits, and lots of self-hosted and cloned sites.

  • Louis Rossmann: YouTube's Legal Team sent me a letter [video]
    1 project | news.ycombinator.com | 3 May 2024
    If you see a post that ought to have been moderated but hasn't been, the likeliest explanation is that we didn't see it. You can help by flagging it or emailing us at [email protected].

    https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

  • An Oil Price-Fixing Conspiracy Caused 27% of All Inflation in 2021
    1 project | news.ycombinator.com | 3 May 2024
    Ok, but please don't post unsubstantive comments to Hacker News.

    I understand the reason for repeating these sentiments—it's the same reason why they get upvoted to the top of threads*—but repetition of this kind is what we're most trying to avoid here.

    https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...

    https://news.ycombinator.com/newsguidelines.html

    * I've marked this one off topic now.

  • Validating app for manufacturers enhancing process reliability and efficiency
    1 project | news.ycombinator.com | 2 May 2024
    I was looking for it in the guidelines. There are a couple of conventions for postings. Consider a bit of prior examples: [https://hn.algolia.com/?q=show+hn]
  • Show HN: Hacker Search – A semantic search engine for Hacker News
    3 projects | news.ycombinator.com | 2 May 2024
    yeah there are only three stories coming up from the site search

    https://hn.algolia.com/?q=postgres+clustering

    only one is semanthically correct, the other pick up the wrong version of clustering (i.e. k-means instead of multi master writes)

    but yeah if one doesn't test the hard cases, how does one know it preserves semantics :D

  • Longevity of Recordable CDs, DVDs and Blu-Rays
    1 project | news.ycombinator.com | 2 May 2024
  • The Scientific Method Part 5: Illusions, Delusions, and Dreams
    1 project | news.ycombinator.com | 2 May 2024
    Like dismissing the work of Feyerabend or Wittgenstein without seemingly having read either:

    https://hn.algolia.com/?dateRange=pastMonth&page=0&prefix=tr...

  • Any Google Analytics Alternatives?
    3 projects | news.ycombinator.com | 1 May 2024
    https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

What are some alternatives?

When comparing lol-html and hn-search you can also consider the following projects:

actor-rust-scraper - Experimental scraper in Rust suited for running locally or on the Apify platform. Inspired by Apify SDK.

duckduckgo-locales - Translation files for <a href="https://duckduckgo.com"> </a>

tq - Perform a lookup by CSS selector on an HTML input

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents

parser - 📜 Extract meaningful content from the chaos of a web page

tools - all-in collection of productivity scripts, CLI tools, utility libraries, fuse filesystems, and also some stuff

readability - A standalone version of the readability lib

hq - lightweight command line HTML processor using CSS and XPath selectors

cargo-expand - Subcommand to show result of macro expansion

milkdown - 🍼 Plugin driven WYSIWYG markdown editor framework.