Using Homebrew on Mac OS X:
brew install jq
Add these aliases to your profile (e.g., ~/.zshrc
, ~/.bashrc
, ~/.profile
, etc.):
alias hurlp='pbpaste | jq ".log.entries" | tee >(jq --raw-output "[.[] | .request.url] | sort | unique | .[]")'
alias hurld='pbpaste | jq ".log.entries" | jq --raw-output "[.[] | .request.url] | sort | unique | .[]" | harurls | tee >(xargs -n 1 curl -O $1)'
- Open the Chrome Developer Tools (
Command
+Option
+i
) - Click the Network tab
- Reload the page (
Command
+r
) - In the Network tab, hover over any area in the table that is not a link (e.g., the Status column)
- Right click (
Control
+click) to open the context menu and click Copy All as HAR - Open your favourite command-line interface (e.g., Terminal)
- Enter
hurlp
to print the URLs orhurld
to download the files
Thanks smartexpert, I followed your instructions and I have jq installed. It returned a lot of data all in green, but then where are my results now? I paste the clipboard and still have your cat entry there. Thanks again.