Skip to content

Instantly share code, notes, and snippets.

@cburmeister
Last active January 17, 2016 20:35
Show Gist options
  • Save cburmeister/3110f9821d2777d1e853 to your computer and use it in GitHub Desktop.
Save cburmeister/3110f9821d2777d1e853 to your computer and use it in GitHub Desktop.
A surfraw elvi to search juno.co.uk
#!/bin/sh
# elvis: juno -- Search juno.co.uk (www.juno.co.uk)
# Corey Burmeister, last name dot first name at gmail.com
. surfraw || exit 1
w3_usage_hook()
{
cat << EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search juno.co.uk (www.juno.co.uk)
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@" # w3_args now contains a list of arguments
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "http://www.juno.co.uk/search/?q%5Ball%5D%5B%5D=${escaped_args}&solrorder=relevancy&hide_forthcoming=0"
# EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment