[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-209-g3952acc

Ian Beckwith ianb at erislabs.net
Mon Jul 11 23:48:28 UTC 2011


The following commit has been merged in the master branch:
commit 643e94cda2ac181af1931bf84a0e320110790b3e
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Mon Jul 11 15:03:00 2011 +0100

    netbsd: fix normal and mail searches: switched to standard google search with site:

diff --git a/ChangeLog b/ChangeLog
index 3ca4e88..36481c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-11  Ian Beckwith  <ianb at erislabs.net>
+
+	* netbsd: fix normal & mail search.
+	  google custom searches were complaining I was a bot, so I
+	  switched to normal google searches with
+	  site:{mail-index,}.netbsd.org.
+
 2011-06-17  Ian Beckwith  <ianb at erislabs.net>
 
 	* arxiv: fix -scope=author with single-word queries.
diff --git a/elvi/netbsd b/elvi/netbsd
index ba861a4..93fcbbf 100755
--- a/elvi/netbsd
+++ b/elvi/netbsd
@@ -75,13 +75,13 @@ if ok SURFRAW_netbsd_mail; then
     if test -z "$escaped_args"; then
         w3_browse_url "http://mail-index.netbsd.org/"
     else
-	w3_browse_url "http://www.google.com/custom?q=${escaped_args}&cof=LW%3A247%3BL%3Ahttp%3A%2F%2Fwww.NetBSD.org%2Fimages%2FNetBSD-smaller.jpg%3BLH%3A200%3BLW%3A200%3BAH%3Acenter%3BAWFID%3A4f6b0499f0f58d2c%3B&domains=mail-index.NetBSD.org&sitesearch=mail-index.NetBSD.org"
+    w3_browse_url "http://www.google.com/search?q=${escaped_args}%20site%3Amail-index.netbsd.org&num=$SURFRAW_results"
     fi
     exit $?
 fi
 if test -z "$escaped_args"; then
     w3_browse_url "http://www.netbsd.org/"
 else
-    w3_browse_url "http://www.google.com/custom?q=${escaped_args}&cof=LW%3A247%3BL%3Ahttp%3A%2F%2Fwww.netbsd.org%2Fimages%2FNetBSD-smaller.jpg%3BLH%3A241%3BAH%3Acenter%3BAWFID%3A4f6b0499f0f58d2c%3B&domains=netbsd.org&sitesearch=netbsd.org"
+    w3_browse_url "http://www.google.com/search?q=${escaped_args}%20site%3Anetbsd.org&num=$SURFRAW_results"
 fi
 exit $?

-- 
surfraw -  a fast unix command line interface to WWW



More information about the Surfraw-commits mailing list