An unofficial, read-only Hacker News reader.

Per Arm's request, this site will be discontinued on 4 December 2026 :( (opens external site)

1184 points by tech234a 5 days ago | arm.jonpalmisc.com | 297 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. > https://solidify.sourceforge.io/ will get you a perfect copy, sans the search box.

    Not really a perfect copy then. The search box is super useful for reference sites.

    Replies (1)
    1. > The search box is super useful for reference sites.

      Indeed it is. But in most implementations search queries are done by looking up the search term the user entered in a database - which at its heart is a simple map: "query term" -> "search results". The database is pre-computed by running an indexing tool over the content in the web site. It's done this way because searching all of the sites content every time a query is entered would be far too slow.

      The generated index is large, so large it's impractical to download all of it into every page, so it's stored on the server. The client (browser) side sends the server the query term you entered. The server queries the database, sends the matching pages back to the client, and the client displays the results.

      A scrapers copies what the client (browser) sees. They deliberately drop all the server side machinery, instead replicating what they find using static files that can be served simple web server with no extra code. Solidify did successfully replicate the client side in this case, including the getting the javascript that sends the query to the server and displayed results. (You won't see it using file:// due to CORS restrictions, you must serve the site from http://). As the database and the machinery needed to query it lives only on the server, it was dropped. This is a limitation of all scrapers have. They are at best a quick and dirty solution to archiving a web site.

      Still, in this case solidify got all the content, and the site used https://pagefind.app/ for the search. So it might be possible to run it yourself and recreate the index.