Skip to main content

Ferret Crawler

Part of Ferret. Command-line name: site2md (or ferret-crawler).

Save a website or intranet as Markdown files, one per page, for a search index (such as Ferret), an LLM tool or an offline copy. Standard-library Python; a real browser is optional for sites behind a login.

The easy way (no setup)

  1. Unzip this folder anywhere.
  2. Double-click Crawl Website.bat (Windows) or Crawl Website.command (macOS; on Linux run bash "Crawl Website.command"). A page opens in your browser; keep the small black window open while you copy (closing it stops the crawler).
  3. Copy a website → paste the address. The page checks it at once ("Found “Engineering Wiki”", or "this address asks you to sign in"). Give the copy a name and press Start copying. For a site behind a sign-in, a browser window opens: sign in there; the page notices and starts copying by itself.

While it copies you see each section of the site filling in, with Pause and Stop. When it is done, the page lists what was not copied, grouped by reason ("page not found · 12"), with Try these again, and can send the copy to Ferret.

The copies are in output/<name>/, one Markdown file per page, next to the original PDF, Word and PowerPoint files the pages link to or embed. The first run installs what it needs (uv, Python, about 1–2 minutes; the internet is needed for that). Your copies lists them, with Update (copy the site again; the old copy is kept until the new one is finished), Continue for a stopped copy, Open folder and Delete.

Sign-ins use Google Chrome or Microsoft Edge already on the computer (or a Chromium downloaded with uv run --extra browser playwright install chromium). The sign-in is kept on your computer only, in ~/.site2md/profile-<browser>. Delete that folder to sign out. The crawler never sees your password.

Original HTML (optional): More options → Also keep each page's original HTML saves each page's HTML in output/<name>-html/, next to the copy rather than in it, to check what a page held. It is not sent to Ferret: the Markdown already keeps the structure that search uses (headings, lists, tables, code, links), and indexing the same page twice would crowd results with duplicates.

The page listens on 127.0.0.1 only, at an address with a one-time key, so other computers and other web pages cannot use it. site2md ui --copies <folder> opens it from a command line; site2md <url> --out <folder> still copies without the page.

Install as a command (technical users)

Needs Python 3.11+ (or uv, which installs Python for you).

uv tool install "site2md[browser] @ ./site2md"       # this folder; or: pipx install "./site2md[browser]"

Use

site2md https://docs.example.com/ --out example-docs

Sites behind a company login (Google Sites, SharePoint, Confluence with SSO) — sign in once in a browser window, then crawl with that session (kept in ~/.site2md/profile-<channel>, on your machine only):

site2md "https://sites.google.com/acme.com/intranet/home" --out intranet --browser --login --channel chrome
site2md "https://sites.google.com/acme.com/intranet/home" --out intranet --browser --channel chrome   # later runs

--channel chrome or --channel msedge uses the browser already installed. --channel firefox or --channel chromium (the default) uses Playwright's own copy: run playwright install firefox (or chromium) once. Other Chromium-based browsers (Brave, Vivaldi): --browser-path to the executable.

What it does

  • Follows every link on every page — content, navigation bar, header, footer, sidebars, frames, <link rel=next> — plus sitemap.xml, until no new page is found (--max-pages, default 10,000).
  • Stays under the start URL's folder (https://host/docs/intro.html → https://host/docs/); --prefix sets other prefixes (repeatable), --allow-host adds whole hosts.
  • Never follows logout, delete, edit, print or feed links; respects robots.txt unless --ignore-robots.
  • Writes <page>.md for every page, with front matter (title, source_url, crawled_at) and the page's text (menus and footers dropped; when the page's <main> element misses part of its text, as on Google Sites, the whole page is used). Scrolls through each page first, so text drawn when it comes into view is included.
  • Saves linked PDF, Word and PowerPoint files as they are, under their own names ("Leave Policy (1).pdf") — nothing is converted, so nothing can be lost; a search index reads them itself (Ferret does, page by page).
  • Downloads the Google Drive files, Docs (as Word) and Slides (as PDF) a page embeds or links to — the PDF viewers on Google Sites pages — and the files in embedded Drive folders, with the same sign-in, and links them from the page ("Attached documents"). Only PDF, Word and PowerPoint files are kept, up to 500 MB: videos and spreadsheets uploaded to Drive are recognised by name before downloading and skipped (listed in the manifest). For files over 100 MB it answers Google's "Download anyway" prompt itself.
  • --save-html also keeps the HTML each page was converted from (in <out>-html/), to check what a page held.
  • Saves a page reached under several URLs once; rewrites links between crawled pages to the local files; removes a title suffix shared by most pages (" | Company Wiki").
  • manifest.json: every URL → file, failures (e.g. "sign-in page"), skips and the remaining queue; --resume continues an interrupted crawl. Ctrl+C stops a crawl cleanly (links fixed, manifest saved).

Pages with no text of their own (only a title or headings) are not written; the manifest lists them under skipped. Without --browser, pages that build their content with JavaScript are among them. --resume also retries the URLs that failed. Embedded Google Sheets and Calendars, forms, videos and files whose owner disabled downloads are not saved; the manifest lists them. The copy has no access control: keep it where only the intended readers can open it.

Metadata

Release files for ferret-crawler 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ferret-crawler 1.1.2
File Size Uploaded Provenance Actions
ferret_crawler-1.1.2.tar.gz 54.4 kB With provenance Details for ferret_crawler-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ferret-crawler 1.1.2
File Interpreter ABI Platform Actions
ferret_crawler-1.1.2-py3-none-any.whl Python 3 none any Details for ferret_crawler-1.1.2-py3-none-any.whl

Total release size: 112.1 kB

Release files / ferret_crawler-1.1.2.tar.gz

Download URL ferret_crawler-1.1.2.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3b8a68026d18493dcdd77bc36ef8905ffe0df9f9becd6153a1023ec3cc823f05
BLAKE2b-256 checksum
How to use checksums
546ae2fccfb32caf62d956e04705e0e6c2f49bf5ee7855bac419499d4117c8a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / ferret_crawler-1.1.2-py3-none-any.whl

Download URL ferret_crawler-1.1.2-py3-none-any.whl
Size 57.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
260cb4e5aaf05db7c7bc0bc4ba3a5afbbff618ec9f22bf24e082524030546104
BLAKE2b-256 checksum
How to use checksums
97a378e2ed6518f80aa3865f6e26c910c1f62e0c9fe65f333cc09d7df9c7a0f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for ferret-crawler 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ferret_crawler-1.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page