[Surfraw-devel] ddg (duckduckgo) elvi attached.

D.J.J. Ring, Jr. n1ea at arrl.net
Sat Sep 14 23:57:53 BST 2019


Hello Jason and heroic developers  in the world's most useful utility,

Just a little elvi for DuckDuckGo, I had difficulty understanding how
you add %s to a bookmark, the principle wasn't documented very well,
at least enough so I could understand it.

I copied the ASK JEEVES elvi making changes.

Perhaps you could add a sample bookmark with the code of adding a
string to it to be passed to the web site, like is possible with
google.

$ google charter fishing boats miami fl

Goes right to it.

This one works fine.

$ ddg charter fishing boats miami fl

Best wishes,

David Ring
-------------- next part --------------
#!/bin/sh
# $Id$
# elvis: ddg		-- Question the web using DuckDuckGo (www.ddg.com)
. surfraw || exit 1

w3_usage_hook () {
    cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
  Question the web using DuckDuckGo (www.ddg.com)
EOF
    w3_global_usage
}

w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
    w3_browse_url "http://www.ddg.gg/"
else
    escaped_args=`w3_url_of_arg $w3_args`
    w3_browse_url "http://www.ddg.gg/?q=${escaped_args}"
fi
-------------- next part --------------
-----BEGIN PGP SIGNATURE-----

iQJIBAABCAAyBQJdfTrYKxSAAAAAABUADXBrYS1hZGRyZXNzQGdudXBnLm9yZ24x
ZWFAYXJybC5uZXQACgkQtXUCOazcQMZoOBAAsByPSrhX5VuQQwRPIK9J0QQoLqUP
6DRlyKfUd1tRMa1NmAEuLNMj98YFOWrTuKJ8KwxfWyQykuf9q70Oy7f4GnN+lrvi
NF5nCIWU6tLf0ic+R2+Faiuw8sVrFR9CnmCk2nlokABAYhynWdoMIwf6H6+WMqjZ
KkCc779RQwFkaEtEHnAVRFZex8DZ5M6QTLrfWkBhxNW/9OdEeJOFQbuCVxsZavEL
efclq8Oux/+WLxe6BTq+uujykAjAqOP1RqS7NYZMGJGBa0oH/62YiAW54r0KyO7H
gANgPhA1ZGIRocARle3fU6MgPtpO/sDEKQnF02ZTCJuR8SDN7XsD/f4PUomqLsRW
KXuoxDvHyQna52IcjWlWzZBezpIcLcO8+b6aI8i5motO5Im2l1/lpiXGNpUFIeCR
ftjU0YDxANiAOBdQz3+vEBC2fcFZWOmDkwkhK3ucNC58QfThmOzjd8JI4y931o39
PkK5vVkUgJi/aFz+WTYIiV1SIRW+7YciAwhHiG213vgEq9wH7pvXyfNHm1t4H7po
EkPQ6ht7hgUlppM+UAVuyfOb4StSrsFJsFrnrSPSxUhfAsaEvAS8efjIwjezXarr
hthFoNsWGzFFTiAQ6IKSYq7Nte+gkaZSDp9AHcDOpUsmuIzVv83vfqatodEkxldv
cLlF+3DBgXTGxMY=
=X1ow
-----END PGP SIGNATURE-----


More information about the Surfraw-devel mailing list