a harbor for the things I love to build

AIOcean

Apps and tools I can't stop making, all docked in one place.

See what I've built

the collection

Things I couldn't stop building

goscrape

  • tool
  • Go
  • CLI

A Go command-line web scraper that saves a website for offline reading or converts its pages to Markdown.

Visit project

Sites are easy to lose. Pages disappear behind logins, redirects, paywalls and quiet shutdowns, and the older tools for copying them get in the way: wget fetches URLs you told it to skip, and a stopped run can leave half-written files behind.

It refuses ignored exclusions, partial files on disk, daemons and telemetry, and chooses to be small, honest and easily read. It is for two kinds of reader: people who keep sites for offline reading or archival, and people who feed pages into notes and LLM workflows.

Afterwards you run one command and keep a copy that behaves like the original, with no daemons, agents or telemetry to set up. This is a fork of cornelk/goscrape. It is console only, with no GUI, and a resumed run does not follow new links inside pages it skips.

  • Exclusions holdA crawl does not wander into pages you ruled out. Pages you exclude are never fetched, and a default deny list also skips login, signup and wp-admin style pages unless you turn it off.
  • Pick up againA long crawl that stops does not have to start over. With the resume option, files already on disk are skipped, but pages skipped this way are not re-read, so links first seen inside them are not followed.
  • Lighter archivesA copy of an image-heavy site does not have to fill your disk. JPEG and PNG files can be re-encoded at a quality from 1 to 100, and the default leaves images untouched.
  • Network stays privateA page you copy cannot steer the crawler into your own network. Requests to loopback, private and link-local addresses are blocked for every host except the one you scrape.

More from the harbor