Command line parser for chromium netlog
NetLog is chrome network logging system
Visit chrome://net-export
You can collect the netlog with either google-chrome or chromium
chromium --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything
google-chrome-stable --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything
# <any-google-chrome-binary> --log-net-log=/tmp/netlog.json --net-log-capture-mode=Everything
The netlog capture mode flag is necessary to extract the sources.
nlp -f /path/to/netlog.json
> show id 1
nlp -f /path/to/netlog.json -c 'show id 1'
Will extract all the website sources that were downloaded into the ./out folder. The folder can be changed.
nlp -f /path/to/netlog.json
> e src out
nlp -f /path/to/netlog.json -c 'e src out'
nlp -f /path/to/netlog.json
> extract dns
nlp -f /path/to/netlog.json -c 'extract dns'
nlp -f /path/to/netlog.json
> e url
nlp -f /path/to/netlog.json -c 'e url'
nlp -f /path/to/netlog.json
> e con
nlp -f /path/to/netlog.json -c 'e con'
nlp
> help
go get github.com/AndreaJegher/nlp
The repo with the code will be created in your default go source folder
go install github.com/AndreaJegher/nlp
If you have the default go binary folder in your path, you can start the program by using the nlp
command
go get github.com/AndreaJegher/nlp
cd $GOPATH/src/github.com/AndreaJegher/nlp
make