百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

har-tools

> 编程语言
开源

用于 HAR 文件的工具

197 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 HAR 文件的工具

har-tools

tools for HAR file

harx : extract files from HAR file. Domain name and all fold info are kept.

installation

harx can be installed using (you need go 1.14)

 go get -v github.com/outersky/har-tools/cmd/harx

this will install an executable in your default path for go executables $GOPATH/bin (default GOPATH=$HOME/go)

harx

Usage: harx [options] har-file

-l                           List files , lead by [index]
-lu  urlPattern              like -l , but filter by urlPattern
-lm  mimetypePattern         like -l , but filter by response mimetype
-x   dir                     eXtract all content to [dir]
-xi  index                   eXtract the [index] content , need run with -l first to get [index]
-xu  urlPattern      dir     like -x , but filter by urlPattern
-xm  mimetypePattern dir     like -x , but filter by mimetypePattern
-xmd mimetypePattern dir     like -xm , but dump contents directly to [dir]

Examples

Step1: Save HAR.

  • open Chrome browser ;

  • open Develeper Tools, switch to Network panel;

  • enter website url, you will see all requests in Network panel;

  • Right Click in Network panel, choose "Save as HAR with Content", that's all.

  • or you can try Capture HAR files from a remote Chrome instance

Step2: Explor content in HAR

$ harx -l /tmp/site.har

You will get something like this:

    mac:har-tools tony$ harx -l /tmp/google.har 
    [  0][   GET][                text/html][Size:    3247][URL:http://www.google.cn/]
    [  1][   GET][                image/png][Size:    7842][URL:http://www.google.cn/landing/cnexp/google-search.png]
    [  2][   GET][                text/html][Size:     962][URL:http://www.google.cn/intl/zh-CN_cn/images/cn_icp.gif]

Step3: Extract them all.

$ harx -x /tmp/some_dir /tmp/site.har

Now you can jump into that folder to see what you get .

Resources

  • HAR 1.2 Spec
  • HAR Viewer
  • Tools, projects and applications that support HTTP Archive format (HAR)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言