Giter VIP home page Giter VIP logo

har-tools's Introduction

har-tools

tools for HAR file

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

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 -a /tmp/some_dir /tmp/site.har

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

Resources

har-tools's People

Contributors

outersky avatar imheresamir avatar terhechte avatar nki2 avatar

Watchers

Timothy Chon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.