{"repo":"cyrus-and/chrome-har-capturer","free":true,"listed":false,"github":"https://github.com/cyrus-and/chrome-har-capturer","clone":"git clone https://github.com/cyrus-and/chrome-har-capturer.git","description":"Capture HAR files from a Chrome instance","language":"JavaScript","stars":569,"topics":["chrome-debugging-protocol","headless","browser","google-chrome","har","http-archive","automation"],"license":"MIT","category":"workflow-automation","readme_excerpt":"chrome-har-capturer Capture HAR files from a Chrome instance. Under the hood this module uses [chrome-remote-interface] to instrument Chrome. Setup Install this module from NPM: Start Chrome like this: Command line utility The command line utility can be used to generate HAR files from a list of URLs. The following options are available: -h, --help output usage information -t, --host Chrome Debugging Protocol host -p, --port Chrome Debugging Protocol port -x, --width frame width in DIP -y, --height frame height in DIP -o, --output write to file instead of stdout -c, --content also capture the requests body -k, --cache allow caching -a, --agent user agent override -b, --block URL pattern ( ) to block (can be repeated) -H, --header Additional headers (can be repeated) -i, --insecure ignore certificate errors -g, --grace time to wait after the load event -u, --timeout time to wait before giving up with a URL -r, --retry number of retries on page load failure -e, --retry-delay time to wait before starting a new attempt -f, --abort-on-failure stop after the first failure (incompatible with parallel mode) -d, --post-data maximum POST data size to be returned -l, --parallel load URLs in parallel Library Alternatively this module provides a simple API that can be used to write custom applications. See the command line utility [source code][] for a working example. [source code]: https://github.com/cyrus-and/chrome-har-capturer/blob/master/bin/cli.js API run(urls, [options]) Start the","default_branch":null,"files":null,"tree":[],"storefront":"/r/cyrus-and","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cyrus-and/chrome-har-capturer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}