wgrep is a command line utility for running selector queries against URLs