Skip to main content
httpcrabber

Network-level traffic interceptor for reverse-engineering and debugging web APIs

Captures on the wire and saves everything to disk — no extensions, no injected code, the page runs untouched.

CI Release v1.5.0 Python 3.11+ Platform Windows · macOS · Linux License GPL-3.0 Built with mitmproxy

English · Русский · Español · 中文


httpcrabber demo: startup, live intercept, session summary

Features · Install · Quick start · Command line · Session output · Working with a session · How it works · Security

⚡ 30-second start

pipx install httpcrabber          # or: pip install httpcrabber inside a venv
httpcrabber

Choose your launch settings, browse as usual, close Chrome — every request, response, WebSocket frame and script of the session is in LOGS/<name>/.

Why

DevTools is great for a quick look, but it is a poor recorder: the log lives only as long as the tab, large bodies and WebSocket frames are awkward to export, scripts are scattered across requests, and a HAR file is one huge snapshot of one tab.

httpcrabber records a whole session to disk. It is an HTTPS proxy based on mitmproxy: every request, response, WebSocket frame and script is captured on the wire and written to a per-session folder as line-by-line JSONL — ready for grep, jq, diffs and scripts. Nothing is installed into the browser or injected into the page, so the site runs exactly as it does on a normal visit, and any browser or device that can use a proxy works.

Features

💚 Animated hacker CLI Matrix rain, gradient glitch banner, typewriter, color-coded status badges, spinners for real waits
📡 Live intercept feed Requests in real time, colored methods and status codes, counters, traffic sparkline
📊 Session analytics Top hosts, method and status breakdown, duration and dump size when the session ends
🧅 Any upstream proxy socks5 / socks5h / socks4 / http / https, with or without auth, every common notation
🗂 One folder per session Network dump + every script together — archive or share a session as a unit
📜 Full JavaScript capture External bundles and inline <script> blocks, complete and deduplicated by SHA-256
🗺 Source maps → original sources Maps are unpacked into the project's original file tree; --sourcemaps fetches the ones scripts reference
🕶 Safe sharing httpcrabber redact makes a copy with tokens, cookies and auth headers masked
🧬 OpenAPI from traffic httpcrabber openapi turns a session into an OpenAPI 3.1 spec — path templates, parameters, JSON schemas, auth
📤 HAR & curl export Open a session in DevTools, Charles, Insomnia or Burp, or replay any request as a curl command
🔎 Session browser httpcrabber browse — filter requests, read bodies, copy curl, replay a request as is or after editing it
🌐 Chrome starts itself Launched through the proxy with a dedicated profile — or bring your own browser with --no-browser
🔐 Automatic CA setup Certificate checked and installed on first run, on Windows, macOS and Linux
⌨️ Scriptable Every prompt has a flag; pass them all and nothing is asked
⏹ Safe shutdown Ends on Chrome close or Ctrl+C — the dump is saved and child processes are cleaned up either way
🌍 Language and appearance Search Chrome locales, use the session UI in English, Polish or Russian, and save a Neon or Ink theme

Requirements

  • Python 3.11+
  • Google Chrome or Chromium (optional with --no-browser)
OS Browser discovery CA certificate install
Windows Program Files, LocalAppData certutil -user into the user Root store — Windows shows one confirmation dialog
macOS /Applications, ~/Applications security add-trusted-cert into the login keychain — macOS asks for your password once
Linux google-chrome, chromium on PATH NSS database ~/.pki/nssdb via certutil from libnss3-tools (sudo apt install libnss3-tools) — this is what Chrome reads. Firefox keeps its own store; install from http://mitm.it there

Set HTTPCRABBER_BROWSER=/path/to/chrome to override discovery on any OS.

Install

pipx install httpcrabber
httpcrabber --version

Why pipx: mitmproxy pins exact versions of its dependencies (cryptography, h2, …), so installing into your global Python can downgrade packages that other tools rely on. pipx keeps httpcrabber in its own environment; pip install httpcrabber inside a venv works just as well.

Or from a clone, for development:

git clone https://github.com/web3daemon/httpcrabber-client.git
cd httpcrabber-client
python -m venv .venv && source .venv/bin/activate     # .venv\Scripts\Activate.ps1 on Windows
pip install -e ".[dev]"

No install at all? python run.py works straight from the clone.

Quick start

httpcrabber

Choose the settings for your recording.

  1. Language — search by language or country
  2. Upstream proxy — paste it in any format, or press Enter to go direct
  3. Session name — e.g. TARGET RECON
  4. Body limit — accept 200,000 bytes or enter a size such as 20MB.
  5. Chrome profile — choose an existing profile or create a new one.

httpcrabber startup: banner, session brief, status lines

It shows a session brief, installs the CA certificate if needed, starts Chrome through the proxy, and streams everything into the session folder. Browse normally — every request, response, WebSocket frame and script is captured. Close Chrome (or press Ctrl+C) to finish; you get an analytics panel and the folder path.

httpcrabber session summary

Profiles, body limits and themes

httpcrabber --lang ru --session yt_fresh --profile yt_fresh --max-body 20MB --binary-bodies --direct --output 'D:\Projects\pypitest\LOGS'
httpcrabber profiles list
httpcrabber profiles use yt_fresh
httpcrabber regions Poland
httpcrabber theme ink

--profile NAME creates or reuses a profile in ~/.httpcrabber/profiles. Select a different name to switch. Each recording still gets its own output folder. Use --profile-dir PATH to reuse a 1.4 Chrome user-data directory. With no selection, an existing ./chrome_profile_proxy takes precedence over the managed default profile. A saved selection from profiles use takes precedence over both.

--max-body accepts bytes, decimal units such as 20MB, binary units such as 2MiB, and default (200,000 bytes). --binary-bodies and --no-binary-bodies override HTTPCRABBER_BINARY_BODIES. An explicit limit overrides HTTPCRABBER_MAX_BODY. Text uses its UTF-8 size and larger binary bodies keep a size marker. Use --setup to show the launch settings even with a complete command line.

On the first interactive launch without arguments, choose Neon or Ink. Switch later with httpcrabber theme or --theme ink. The preference is stored in ~/.httpcrabber/theme.

Ink terminal theme

PyPI ships compiled wheels for standard CPython 3.11+ on Windows x64, Linux (glibc) x64/ARM64 and macOS Intel/Apple Silicon. For other targets, the source for each release is available under its Git tag.

Command line

Every prompt has a flag. Pass them all and httpcrabber asks nothing — handy for scripts.

httpcrabber --lang en --session "target recon" --proxy socks5://user:pass@1.2.3.4:1080
httpcrabber -l en -s quick --direct --no-browser          # use your own browser / device
httpcrabber --no-anim                                      # plain output, no animations
httpcrabber -s api --include '*.target.com' --sourcemaps  # only the target + original sources
Flag Meaning
-l, --lang TAG Chrome locale. The session UI supports en, ru and pl, with English for other locales.
-s, --session NAME Session name → LOGS/<name>/
-p, --proxy PROXY Upstream proxy, any format
--direct No upstream proxy
--port PORT mitmproxy listen port (default 8080, next free one if busy)
-o, --output DIR Where sessions go (default ./LOGS)
--include HOST Record only matching hosts — glob, repeatable (*.target.com)
--exclude HOST Never record matching hosts — glob, repeatable
--sourcemaps Fetch source maps referenced by scripts and unpack the original sources
--no-browser Don't launch Chrome — point any browser or device at 127.0.0.1:<port>
--no-anim Disable animations
-V, --version Print version

Proxy formats

Every common notation is accepted. Press Enter with an empty input for a direct connection.

host:port
host:port:user:pass
user:pass@host:port
socks5://user:pass@host:port
http://host:port
https://user:pass@host:port

Schemes: http, https, socks5, socks5h, socks4. Passwords are masked in the interface.

Session output

Each session is a self-contained folder:

LOGS/
└── target_recon/
    ├── target_recon.jsonl                     # network dump
    └── js/
        ├── index.json                         # manifest: url, file, sha256, size, hits
        ├── cdn.target.com/
        │   ├── main.a3f1c8d4.js               # external scripts
        │   ├── maps/main.js.9c1d2e3f.map      # source maps
        │   └── sources/app/src/…              # original sources unpacked from maps
        └── target.com/
            └── inline/inline_0001.e5f6a7b8.js # inline <script> blocks

If a session name already exists, _2, _3 … is appended. Nothing is ever overwritten.

Network dump

One JSON object per line, with an event field: request · response · ws_open · ws_msg · ws_close · error. Each record is flushed to disk immediately, so a crash or a hard kill loses nothing.

Every record carries an id: a request, its response, its error and the WebSocket frames of one connection share it, even when the same URL is fetched in parallel. Responses add duration_ms and size. Headers are written twice — headers (a dict, as before) and headers_raw (a list of pairs that keeps repeated headers such as several Set-Cookie). WebSocket frames have a type, text or binary; binary frames are stored like binary bodies.

Captured JavaScript

  • Scripts are stored complete. Bodies inside the .jsonl are truncated at 200 KB, but files in js/ are the full source — a 5 MB minified bundle is saved whole.
  • Duplicates collapse by SHA-256. One bundle requested a hundred times is stored once, with hits: 100 in the manifest.
  • Inline scripts are extracted from HTML. Tags with src= are skipped (they arrive as their own request), as are application/ld+json and text/template — those are not code.
  • Filenames carry a short content hash, so different builds of the same app.js never overwrite each other.

Source maps

Browsers download source maps only while DevTools is open, so normally they never cross the wire. httpcrabber unpacks every map it does see — inline data: maps and any .map response — into js/<host>/sources/. With --sourcemaps it also requests the maps that scripts reference, through its own proxy and your upstream, so they land in the dump too, marked fetched_by: "sourcemap". Many production sites don't publish maps; when one does, you get the original project tree instead of a minified bundle.

Working with a session

Everything below works on a finished session — pass its folder or its .jsonl.

httpcrabber browse: requests on the left, pretty-printed response on the right

httpcrabber ls                                         # saved sessions, newest first
httpcrabber browse                                     # explore the newest one in the terminal
httpcrabber openapi LOGS/target_recon                  # → LOGS/target_recon/openapi.json
httpcrabber openapi LOGS/target_recon -o api.yaml --host 'api.*'
httpcrabber export har LOGS/target_recon               # → LOGS/target_recon/target_recon.har
httpcrabber export curl LOGS/target_recon -m /graphql -X POST
httpcrabber redact LOGS/target_recon                   # masked copy for sharing
Command What you get
ls Every saved session with its start time, duration, request count, dump size and what's inside (scripts, recovered sources, HAR, spec).
browse A terminal UI for the session: filter (method:POST status:4xx host:api graphql), headers and pretty-printed bodies, WebSocket frames, the request as curl — and replay: r sends it again, e lets you edit method, URL, headers and body first, and the new response is shown next to the recorded one.
openapi An OpenAPI 3.1 spec of the API calls: path templates (/users/42 → /users/{userId}), query and header parameters, JSON schemas merged across every sample, status codes, Bearer / Basic / API-key auth, GraphQL operation names. Example values are redacted. Open it in Swagger UI, Postman, Insomnia or feed it to a code generator.
export har A HAR 1.2 archive for Chrome DevTools (Network → Import HAR), Charles, Fiddler, Insomnia or Burp — with cookies, query strings, form fields and WebSocket frames.
export curl Ready-to-run curl commands, filtered by --match, --method or --id. Quoting follows your OS (--shell posix / powershell).
redact A copy that is safe to share — see Security.

The spec describes only what was observed: an endpoint you never called is missing, and a field seen in only some responses is optional. It is a head start, not a contract.

How it works

flowchart LR
    B["🌐 Chrome"] -->|HTTPS| M["🦀 mitmproxy<br/><sub>capture</sub>"]
    M --> P["🔌 pproxy bridge<br/><sub>scheme adapter</sub>"]
    P -->|"socks5 · http"| U["🧅 your upstream proxy"]
    U --> T["🎯 target"]
    M -.-> F[("📁 LOGS/session<br/><sub>JSONL + JS</sub>")]

    classDef hop fill:#0b0f0c,stroke:#39ff14,color:#d6ded6,stroke-width:1.5px
    classDef core fill:#0b0f0c,stroke:#ff2fd0,color:#ffffff,stroke-width:2px
    classDef store fill:#0b0f0c,stroke:#00e5ff,color:#d6ded6,stroke-width:1.5px
    class B,P,U,T hop
    class M core
    class F store

mitmproxy natively supports only http/https upstream proxies. To make SOCKS5 work transparently, httpcrabber starts a local pproxy bridge that speaks HTTP to mitmproxy and any scheme to your proxy. Both hops are on loopback, so the overhead is negligible.

src/httpcrabber/
  cli.py       arguments, prompts, main()
  session.py   orchestration: bridge → mitmproxy → CA → browser → live loop
  capture.py   mitmproxy addon: JSONL dump, JS collector, live stats
  proxy.py     upstream proxy parser        bridge.py   pproxy bridge
  ca.py        CA install per OS            browser.py  Chrome discovery per OS
  ui.py        animations, panels, feed     i18n.py     UI strings
  commands.py  redact / export / openapi    dump.py     reads a recorded session
  export.py    HAR and curl                 openapi.py  OpenAPI inference
  sourcemaps.py unpacking source maps       redact.py   masking secrets
  browse.py    terminal session browser     replay.py   request replay

⚠️ Security

Captured traffic contains live credentials. Session dumps routinely include Cookie, Set-Cookie, Authorization headers, API keys and tokens for every site you visited during the session.

  • LOGS/ and *.jsonl are excluded by .gitignore — keep it that way.
  • To share a session, make a masked copy: httpcrabber redact LOGS/target_recon → LOGS/target_recon_redacted/. Auth headers, cookies and tokens in URLs, forms and JSON become [REDACTED]; scripts are copied as is, the original session stays untouched.
  • Never commit, upload or share a session dump before reviewing it.
  • Treat a session folder as if it were your password manager export. Because effectively, it is.
  • The tool installs a locally generated root CA. SECURITY.md explains how to remove it when you are done.

Responsible use

This is a tool for security research, API debugging, and interoperability work on systems you own or are authorized to test. You are responsible for complying with applicable law, the terms of service of the sites you access, and the privacy of any third-party data you encounter. Do not use it to access systems without permission.

Contributing

Issues and pull requests are welcome — see CONTRIBUTING.md for setup, conventions and how to add a language. Security reports go through SECURITY.md.

ruff check src tests run.py && pytest

License

GNU General Public License v3.0 — see the license file for the full text.

Metadata

Release files for httpcrabber 1.5.0

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

Built distributions (wheels)

Table of built distributions (wheels) for httpcrabber 1.5.0
File Actions
httpcrabber-1.5.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for httpcrabber-1.5.0-cp311-abi3-win_amd64.whl
httpcrabber-1.5.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for httpcrabber-1.5.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
httpcrabber-1.5.0-cp311-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.5+ x86-64 Details for httpcrabber-1.5.0-cp311-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
httpcrabber-1.5.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for httpcrabber-1.5.0-cp311-abi3-macosx_11_0_arm64.whl
httpcrabber-1.5.0-cp311-abi3-macosx_10_9_x86_64.whl CPython 3.11 abi3 macOS 10.9+ x86-64 Details for httpcrabber-1.5.0-cp311-abi3-macosx_10_9_x86_64.whl

Total release size: 15.8 MB

Release files / httpcrabber-1.5.0-cp311-abi3-win_amd64.whl

Download URL httpcrabber-1.5.0-cp311-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0a9120ba77014bad0cfb9e4df3c06580d986493a513b2186476d0280716fe2b0
BLAKE2b-256 checksum
How to use checksums
3402ceddd3ec7dd52d20f616c9068b233170f220933cfca22c75ca65a28d4514
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 Nov 25, 2026.

Transparency log

Release files / httpcrabber-1.5.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL httpcrabber-1.5.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 6.0 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ffa06391f254a34f9fa36d5a3fa22a129f3fab014b0cbc0a70f7f2017578d334
BLAKE2b-256 checksum
How to use checksums
dff1491a5870d8272576dd067a3b57250846e8a69260d8df1a3f14160facfec5
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 Nov 25, 2026.

Transparency log

Release files / httpcrabber-1.5.0-cp311-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL httpcrabber-1.5.0-cp311-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 6.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
f74c8dc787b603d85b71fe3f8469770f33a6468a5e4773514e2e7afc47ad9dcd
BLAKE2b-256 checksum
How to use checksums
f24d3231b754c2b0ed9d3ff3056d8662414ceec32270382b01a601067e2ee9a3
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 Nov 25, 2026.

Transparency log

Release files / httpcrabber-1.5.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL httpcrabber-1.5.0-cp311-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2900b450597e03bfd9b2f3f06511d9c32cccb4f96239a0af7cfa3d2eeed8fb19
BLAKE2b-256 checksum
How to use checksums
596bb744ff0934668fc67944c145d15173168f82087e92a95e205420589283f7
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 Nov 25, 2026.

Transparency log

Release files / httpcrabber-1.5.0-cp311-abi3-macosx_10_9_x86_64.whl

Download URL httpcrabber-1.5.0-cp311-abi3-macosx_10_9_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
04e2c035a0343ebd8687d625bf0c0c5b0670c6daa0003f1465320434dc9613b2
BLAKE2b-256 checksum
How to use checksums
d68a34a0af295f53a817453740688655d47ed1be5ae0981d4b8fecd2e31b6b49
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 Nov 25, 2026.

Transparency log

Security for httpcrabber 1.5.0

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

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for httpcrabber-1.5.0-cp311-abi3-win_amd64.whl

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 Nov 25, 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