The Artima Developer Community
Sponsored Link

Java Buzz Forum
Command Line Google, 2.0

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Command Line Google, 2.0 Posted: Jun 27, 2005 1:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Command Line Google, 2.0
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Just updated my google command line script to remove the dependency on the GPL'd Ruby/Google, as well as any other external libraries. All it needs now is a recent version (I am using 1.8.2) of ruby =)

 
brianm@kite:~$ google -h
Usage: google [options] query string which will be concatenated

  Options:
    -i, --start NUMBER               Start index for results
    -m, --max NUMBER                 Max number of results to show
    -f, --[no-]filter                Activates or deactivates automatic results filtering
    -r, --restrict VALUE             Restricts the search
    -a, --[no-]safe                  Enable or disable (default disabled) filtering of adult content
    -1, --lucky                      I'm feeling lucky
    -H, --header                     Print field header on ouput (default disabled)
    -s, --snippet                    Display result snippet in output
    -t, --title                      Display result title in output
    -u, --[no-]url                   Show or hide result url in output

    -h, --help                       Show this message

Requires Ruby 1.8.1 and Ruby/Google ( http://www.caliban.org/ruby/ruby-google.shtml )
You can obtain a (free!) google key from http://www.google.com/apis/
exit
brianm@kite:~$   

Have fun!

Read: Command Line Google, 2.0

Topic: Links for 2005-06-16 [del.icio.us] Previous Topic   Next Topic Topic: WordPress Plugin to Make your Blog Temporarily Unavailable for Maintenance

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use