shyiko / electron-har Goto Github PK
View Code? Open in Web Editor NEWA command-line tool for generating HTTP Archive (HAR) (based on Electron)
Home Page: https://www.npmjs.com/package/electron-har
License: MIT License
A command-line tool for generating HTTP Archive (HAR) (based on Electron)
Home Page: https://www.npmjs.com/package/electron-har
License: MIT License
On OS X, latest El Capitan, using zsh and the electron-har installed via
npm install -g electron-har
When I first tried:
electron-har http://cultofmac.com
It worked, and I got the HAR output to stdout.
Second time + all subsequent attempts, I’m getting:
An attempt to generate HAR resulted in error code -3.`
According to https://src.chromium.org/svn/trunk/src/net/base/net_error_list.h:
// An operation was aborted (due to user action).
NET_ERROR(ABORTED, -3)
Any ideas?
Hello,
Would this be possible to use with Nightmarejs?
the HAR object this produces, has an empty content{}, there is no content "text" attribute. Is there a way to enable?
Not sure what's going on here... That file exists, and I can run the binary directly in my CLI per the README.md examples, though pragmatic access causes an ENOENT error when spawning the bin file.
Anyone else run into this?
After running the npm install with -g flag, getting an error when trying the example snippet programmatically as well as from cmd terminal:
Uncaught Error: Cannot find module 'electron-har'
at Module._resolveFilename (module.js:543:15)
at Function.Module._resolveFilename (/Users/[USER]/Documents/Development/ElectronWebSave/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at file:///Users/[USER]/Documents/Development/ElectronWebSave/browser.js:8:21
Given:
How much of a security risk is running electron-har and what steps could be taken to minimise risk of arbitrary code execution?
At the very least, we should link to the warning(s) on the Electron site, above.
Hi,
I installed electron-har and when i use command "electron-har http://google.com ", I am getting this error has cannot find module electron. can anybody help on this
Add support for -b, --cookie <name=data>.
Pass the data to the HTTP server as a cookie. It is supposedly the data previously received from the server in a "Set-Cookie:" line. The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
Found information on the following User Agent topics, and it doesn't seem to work well: https://github.com/atom/electron/blob/master/docs/api/session.md#seswebrequest
Perusing the electron issues, I found electron/electron#134 regarding a User Agent API, but the conversation around creating one died pretty quickly.
One of the primary use cases I have around this project is being able to throttle the network and applying custom user agents to simulate certain desktop and mobile environments. Curious if you've tackled this before or if you think this would be a decent addition?
I'm planning to dig into Electron's docs to see if this is feasible and will be tinkering with a possible integration soon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.