/usr/lib/surfraw/ixquick is in surfraw 2.2.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | #!/bin/sh
# $Id$
# elvis: ixquick -- Search the web using ixquick [HTTPS] (www.ixquick.com)
. surfraw || exit 1
w3_config_hook () {
def SURFRAW_ixquick_search 'do/metasearch.pl'
def SURFRAW_ixquick_lang "$SURFRAW_lang"
defyn SURFRAW_ixquick_ssl yes
}
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Surfraw search the web using Ixquick metasearch [HTTPS] (www.ixquick.com)
Local options:
-nossl Don't use https
Environment: SURFRAW_ixquick_ssl
-search= Specialized search on topic
web | web
pics | images
Environment: SURFRAW_ixquick_search
-lang= Language interface of ixquick
english
dansk
deutsch
espanol
francais
italiano
nederlands
norsk
polski
portugues
suomi
svenska
turkce
jiantizhongwen
nihongo
fantizhengwen
hangul
Default: english
Environment: SURFRAW_ixquick_lang, SURFRAW_lang
EOF
w3_global_usage
}
w3_parse_option_hook () {
opt="$1"
optarg="$2"
case "$opt" in
-no*) setoptyn SURFRAW_ixquick_ssl no ;;
-search=*) setopt SURFRAW_ixquick_search $optarg ;;
-lang=*) setopt SURFRAW_ixquick_lang $optarg ;;
*) return 1 ;;
esac
return 0
}
w3_config
w3_parse_args "$@"
if ifyes SURFRAW_ixquick_ssl
then
proto="https"
else
proto="http"
fi
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "${proto}://www.ixquick.com/"
else
case "$SURFRAW_ixquick_lang" in
en|english) SURFRAW_ixquick_lang="english" ;;
dk|dansk) SURFRAW_ixquick_lang="dansk" ;;
de|deutsch) SURFRAW_ixquick_lang="deutsch" ;;
es|espanol) SURFRAW_ixquick_lang="espanol" ;;
fr|francais) SURFRAW_ixquick_lang="francais" ;;
it|italiano) SURFRAW_ixquick_lang="italiano" ;;
nl|nederlands) SURFRAW_ixquick_lang="nederlands" ;;
no|nb|nn|norsk) SURFRAW_ixquick_lang="norsk" ;;
pl|polski) SURFRAW_ixquick_lang="polski" ;;
pt|portugues) SURFRAW_ixquick_lang="portugues" ;;
fi|suomi) SURFRAW_ixquick_lang="suomi" ;;
sv|svenska) SURFRAW_ixquick_lang="svenska" ;;
tr|turkce) SURFRAW_ixquick_lang="turkce" ;;
cn|zh|jiantizhongwen) SURFRAW_ixquick_lang="jiantizhongwen" ;;
ja|jp|nihongo) SURFRAW_ixquick_lang="nihongo" ;;
zt|fantizhengwen) SURFRAW_ixquick_lang="fantizhengwen" ;;
ko|kr|kp|hangul) SURFRAW_ixquick_lang="hangul" ;;
*) SURFRAW_ixquick_lang="english" ;;
esac
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "${proto}://www.ixquick.com/do/metasearch.pl?cat=${SURFRAW_ixquick_search}&cmd=process_search&language=${SURFRAW_ixquick_lang}&query=${escaped_args}"
fi
|