Giter VIP home page Giter VIP logo

harextract's Introduction

harextract

Browser-based HAR extraction tool.

You can use it online if you don't want to download it.

All you need is harextract.html -- it's completely self-contained and doesn't require any online resources.

Open the page in a browser and use the file chooser button on the page to load a HAR file.

From there you can save individual files, and also save the entire collection as a ZIP file:

screenshot

It is extremely basic right now but may evolve over time.

Bugs

Probably a ton. Written quickly and only tested on Chrome for Windows. Report them on the issues page.

License

Copyright (C) 2021-2022, Jason Cipriani <jason.cipriani.dev ~ gmail.com>
HARExtract home page: https://www.github.com/JC3/harextract

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

--------------------------------------------------------------------------

HARExtract uses the library JSZip 3.7.1 released under the GPLv3 license.
JSZip Copyright (C) 2009-2016 Stuart Knightley
JSZip home page: https://stuk.github.io/jszip/
JSZip license: https://github.com/Stuk/jszip/blob/v3.7.1/LICENSE.markdown

harextract's People

Contributors

jc3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

harextract's Issues

No download link for empty filenames

If a filename is empty, there is nothing to click on to download it.

Make a download link available somewhere for files with no name. Maybe give them a default id-based name or something.

Confirm v0.9.1 working in other browsers

  • Chrome 96-99 (windows)
  • Chrome 100 (windows)
  • Chrome (macos)
  • Chrome (android)
  • Edge (windows)
  • Firefox (windows)
  • Safari (macos)
  • Safari (ios)
  • Opera (windows)
  • Brave (windows)

That'd probably be sufficient; or at least, it's all I feel like doing.

Add the choice to sort by ids

When opening the har file is it possible to keep the original order, i.e. have the html table ordered by id and when zipped be in this order please?

Simplify path stripping code

As per todo:

harextract/harextract.html

Lines 175 to 192 in b9a4dc0

// now make a few passes to strip common path prefixes
// todo: code can be simplified by maintaining common components above then
// doing a single second pass to slice + join.
if (harents.length > 0) {
for (var ncommon = 0, allsame = true; allsame && ncommon < harents[0].pathcomps.length; ++ ncommon) {
allsame = true;
let refpart = harents[0].pathcomps[ncommon];
for (ent of harents) {
if (ent.pathcomps[ncommon] != refpart) {
allsame = false;
break;
}
}
}
for (ent of harents) {
ent.path = (ncommon < 0 ? '' : ent.pathcomps.slice(ncommon - 1).join('/'));
}
}

Error loading file

Hello,

I love your tool and have been using it quite a while to extract images from the web. It has always worked for me so I wanted to thank you for that. I did encounter an issue for the first time and I am not I have not done anything differently from how I typically use this tool or making the HAR files. I have attached the error messages that I have gotten so far. The only thing I would say is different is the amount of content within the HAR file (it's a bit bigger this time) but I am not sure how this would relate to this issue or if it does in the first place.

Thank you

Capture1

image

Update check

Check for updates but only if:

  • It can be done nonintrusively.
  • It causes no issues when offline.
  • It can be displayed without disrupting UX.

Line breaks in embedded JSZip

Try to stick some strategic linebreaks in the embedded minified JSZip.

That long line is super annoying in editors and in the GitHub web interface.

Downloader shortens video files

Hey yo,

I think that both the ZIP-Downloader and the individual file links shorten extracted video files to 1MB. So I can see the size of the extracted videos being larger than 1MB, but when I download them, they all suddenly are 1MB in size. The videos are actually viewable, at least in VLC Media Player. Any ideas what's wrong?

Screenshot here (german):
attachment

Kind regards
Milan

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.