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

Ian Beckwith ianb at erislabs.net
Mon Oct 25 01:39:02 UTC 2010


The following commit has been merged in the master branch:
commit 0ade7bb5f734e0e528cc2a2e73e3cbdfa3e3cca6
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Mon Oct 25 01:24:13 2010 +0100

    new elvi: scirus

diff --git a/ChangeLog b/ChangeLog
index abd1465..e5f6b57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-10-25  Ian Beckwith  <ianb at erislabs.net>
 
+	* new elvi: scirus.
 	* yahoo: reduced query string to just p and n options.
 	* openbsd: support -misc and -tech. Thanks to
 	  Sunil Nimmagadda for the patch.
diff --git a/elvi/scholar b/elvi/scirus
similarity index 54%
copy from elvi/scholar
copy to elvi/scirus
index 877da95..cf93ba9 100755
--- a/elvi/scholar
+++ b/elvi/scirus
@@ -1,24 +1,23 @@
 #!/bin/sh
-# $Id$
-# elvis: scholar		-- Search Google Scholar (scholar.google.com)
+# elvis: scirus		-- Search for science using Scirus (scirus.com)
 . surfraw || exit 1
 
 w3_usage_hook () {
     cat <<EOF
 Usage: $w3_argv0 [options] [search words]...
 Description:
-  Surfraw search Google Scholar (scholar.google.com)
+  Surfraw search for science using Scirus (scirus.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://scholar.google.com/"
+    w3_browse_url "http://www.scirus.com/"
 else
     escaped_args=`w3_url_of_arg $w3_args`
-	w3_browse_url "http://scholar.google.com/scholar?q=${escaped_args}"
+    w3_browse_url "http://scirus.com/srsapp/search?q=${escaped_args}&t=all&sort=0&g=s"
 fi
diff --git a/test/scirus.test b/test/scirus.test
new file mode 100644
index 0000000..527ee19
--- /dev/null
+++ b/test/scirus.test
@@ -0,0 +1,2 @@
+scirus cryptanalysis chaos cipher
+chaos block cipher

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



More information about the Surfraw-commits mailing list