PhantomHAR
a PhantomJS/SlimerJS script to generate HTTP Archive (HAR) data from captured network traffic
Install / Use
/learn @cvan/PhantomHARREADME

A PhantomJS script to generate HTTP Archive (HAR) data from captured network traffic.
Dependencies
To use PhantomJS:
<code>brew install phantomjs</code>
To use SlimerJS:
./install-packages.sh
Installation
If you'd like easier CLI invocation, you can install PhantomHAR globally:
npm install -g phantomhar
Or clone the repo locally and install the Node dependencies:
git clone git@github.com:cvan/phantomHAR.git
npm install
Tests
To run tests:
npm test
Usage
Command-Line Interface
To run from the command line:
phantomhar
Alternatively:
node cli.js
This will output:
Usage: phantomhar [options]
Options:
-h, --help output usage information
-V, --version output the version number
-u, --url <url> specify the url for which to generate a HAR
-d, --delay [delay] wait X seconds before generating the HAR [$PHANTOMHAR_DELAY || 1000]
-b, --bodies include response bodies in the HAR [$PHANTOMHAR_BODIES || false]
-H, --host [host] specify the server host [$PHANTOMHAR_HOST || 0.0.0.0]
-p, --port [port] specify the server port [$PHANTOMHAR_PORT || 4000]
Output to stdout
Globally
phantomhar 'http://thephantomoftheopera.com'
Locally
node cli.js 'http://thephantomoftheopera.com'
Output to clipboard (Mac OS X)
Globally
phantomhar 'http://thephantomoftheopera.com' | pbcopy
Locally
node cli.js 'http://thephantomoftheopera.com' | pbcopy
Output to a file
Globally
phantomhar 'http://thephantomoftheopera.com' > 'tpoto.com-'$(date +%Y.%m.%d-%H.%M.%S)'.har'
Locally
node cli.js 'http://thephantomoftheopera.com' > 'tpoto.com-'$(date +%Y.%m.%d-%H.%M.%S)'.har'
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
