Slashdot Mirror


goosh, the Unofficial Google Shell

ohxten writes "Stefan Grothkopp has come up with a pretty neat tool called goosh. It's essentially a browser-oriented, shell-like interface that allows you to quickly search Google (and images and news) and Wikipedia and get information in a text-only format. This is quite possibly the coolest thing I've seen in a good while."

29 of 310 comments (clear)

  1. Re:Lynx by QuantumG · · Score: 4, Informative

    links is superior.

    --
    How we know is more important than what we know.
  2. Slow and doesn't work on my mobile browser by garcia · · Score: 3, Informative

    So I loaded it and watched it work -- reminiscent of ANSI BBSs but with AJAX instead.  It was quick on my laptop but on my mobile device it took longer to load that Google did itself and while I could enter search terms I couldn't submit them.  But it's in BETA and it's a Google side project so we should all bow before its greatness.

    So here: <bow></bow> :)

    1. Re:Slow and doesn't work on my mobile browser by merreborn · · Score: 4, Informative

      it's in BETA and it's a Google side project
      In the block of text at the top of the page, it says "NOT an official google product!". Additionally, the whois info for the domain shows it's personally registered by Mr. Grothkopp himself, in Germany.

      As such, if by "google side project", you mean "an experimental project created by a google employee", I believe you may be wrong. It's some random hacker's side project, and it queries a google API, but that's the only resemblance to a "google side project" it bears.
  3. Re:What is this junk? by peragrin · · Score: 4, Informative

    Now type in one of the numbers. The link opens up in a new tab/window

    Or type

      open http://slashdot.org/

    --
    i thought once I was found, but it was only a dream.
  4. Re:What is this junk? by cyphercell · · Score: 2, Informative

    ...to keep your hands off the mouse, alt+ "->" works to move forward a page and back a page in firefox.

    --
    Under the influence of Post-Cyberpunk Gonzo Journalism
  5. Re:Lynx by mario_grgic · · Score: 3, Informative

    Lynx is more like VI, links is more like using GUI (it has popup dialogs, menus etc).

    Some people prefer vi style of navigation through pages, myself included.

    --
    As the island of our knowledge grows, so does the shore of our ignorance.
  6. Re:Lynx by peragrin · · Score: 2, Informative

    yes they are
    type in the number of the result you want.

    to see more results type in more

    try typing in help if your confused.

    it's actually really clever. you don't have to remove your hands from the keyboard.

    --
    i thought once I was found, but it was only a dream.
  7. Re:Difference? by morgan_greywolf · · Score: 2, Informative

    Get a mobile phone that runs Linux.

  8. Konqueror by slashqwerty · · Score: 3, Informative
    Konqueror has this functionality built into the location bar. To search Google, just type "gg: search phrase". To search wikipedia, type "wp: search phrase". Forgot what Moore's law is? "fd:Moore's law". Someone created a new search engine? You can add your own shortcuts.

    You can even set a default search engine. In that case anything that doesn't look like a valid URL goes to the default search engine. To top that off, you can select text, then middle-click on the background and it will be just like tossing the text into the location bar and pressing return. You can select a phrase from a web page and middle click to instantly run a web search on the phrase. It's one of Konqueror's coolest features.

  9. Re:Totally geeky by martin-boundary · · Score: 5, Informative
    There's already a better choice for command line integration: try surfraw. This lets you stay within a real command shell such as bash, and just type

    $ google what I want to know

    You'll get the results directly in a browser of your choice. If you're like me, you have the browser set up as w3m, so that the google results simply appear in the same terminal where you can click on them. Since w3m is a pager like more and less, you can postprocess the google output, eg

    $ google hello | grep Cached
    www.hello.com/ - 2k - Cached - Similar pages
    www.hellomagazine.com/ - 32k - Cached - Similar pages
    www.hellomagazine.com/royalty/ - 27k - Cached - Similar pages
    en.wikipedia.org/wiki/Hello - 39k - Cached - Similar pages
    en.wikipedia.org/wiki/Hello_world_program - 32k - Cached - Similar pages
    www.elite.net/~runner/jennifers/hello.htm - 157k - Cached - Similar pages
    www.ipl.org/div/hello/ - 20k - Cached - Similar pages
    www.mylalaland.com/hello/ - 6k - Cached - Similar pages
    publicaddress.typepad.com/ - 58k - Cached - Similar pages
    www.sanrio.com/ - 10k - Cached - Similar pages

    Best of all , surfraw is not just limited to google, so you can have a complete shell browsing experience for a lot of different sites.

  10. Re:Totally geeky by nuzak · · Score: 4, Informative

    Capturing all keyboard inputs would require javascript, and if you have that enabled for google, you'd have noticed it already sets the focus to the input box when loaded.

    --
    Done with slashdot, done with nerds, getting a life.
  11. Re:Konqueror (and Firefox too...) by Anonymous Coward · · Score: 1, Informative

    You can do what you described with ANY search box with Firefox. Right click on the box you want to be searching in and hit 'add a keyword to this search', and you can add what ever shortcut(s) you want.

    Some of mine:
    wiki (wikipedia)
    g, goog, google (google)
    gi (google image search)
    d, dict (dictionary)
    y, yt, youtube (youtube)

    etc.

  12. Re:Browser Graphical Commandline by Ai+Olor-Wile · · Score: 3, Informative

    That XMLterm.org page looks kind of evil. I think it may actually be a spam-blog that rips stuff from here. It's just a little bit hard to credit some of the stuff they link to as official Mozilla sites given their propensity to misspelling Firefox, and the fact that the download buttons are blank. Also, I strongly doubt that the people who wrote XMLterm were peddling some of the crap that blog links to. Alas, it may be more dead than you think.

  13. Re:precisely why I don't have a gmail account by Gavagai80 · · Score: 2, Informative

    Not only is it not against their TOS, they provide API tools and instructions to help you perform automated queries. What you don't have the right to do is drive huge amounts of traffic through them, such as by setting up your own google-clone website that you advertise to the world.

    --
    This space intentionally left blank
  14. Re:Ironic... by Anonymous Coward · · Score: 3, Informative

    No, the cake is clearly a lie. Whether or not there is cake in existence within the laboratory is irrelevant. You are told you are going to get cake when you are really going to be thrown into the fire. Even the people who escaped the fire and left you notes telling you of the lie most likely never saw the cake.

  15. vi keys in Google by Ilyakub · · Score: 2, Informative

    On a somewhat related note, Google is experimenting with vi keyboard shortcuts for their search interface. You can test it at labs.google.com/experimental.

  16. Re:Totally geeky by smittyoneeach · · Score: 4, Informative

    Also, w3m runs nicely as an inferior process under emacs.
    http://www.emacswiki.org/cgi-bin/wiki/emacs-w3m#WThreeM

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  17. Cool tidbit by nog_lorp · · Score: 2, Informative

    From goosh.org/goosh.js:
    ------
      If you want to extend goosh.org, please take a look at the load command.
    You can see an example module at http://goosh.org/ext/spon.js

    Code of an extension: (indented properly)
    ------
    function search_spon() {
        this.name = "spon";
        this.aliases = new Array("spon","spiegel");
        this.mode = true; this.help = "search in spiegel.de";
        this.call = function(args) {
            this.start = 0; this.args = "site:www.spiegel.de "+args.join(" ");
            this.query("web",this.args);
        }

        this.next = function() {
            this.start += 4;
            if(this.args)
                this.query("web",this.args);
        }

        this.render = function(context, results, status, details, unused) {
            if(results && results.results != "")
                this.hasmore = true;
            else
                this.hasmore = false;
            this.renderResult(context, results, status, details, unused);
        }
    }
    register_searcher("spon","web");

  18. Re:Ironic... by oracle128 · · Score: 5, Informative

    Technically, the *player* is promised cake and grief counselling at the conclusion of the test, not necessarily the character (Chell). It is not specified that they will actually be given the cake, only that it will be available (which it was, the character presumably being dead was just an unfortunate circumstance preventing the character from eating said cake). Nor does it specify that "cake" isn't a metaphor for something else, such as "dumped into an incinerator" or that it may be available in the afterlife. We were shown the cake, we know it exists. If Chell didn't want to go back and get some, it's her own fault. Perhaps this user has only used cheats to get to the last level, instead of playing through the whole game.

  19. Re:Not particularly useful by martin-boundary · · Score: 4, Informative
    I posted this in another comment already, but here's a version with more details: if you use surfraw and w3m together, you can essentially have clickable google results inside an xterm, and a first class piping mechanism. You might have to change the color scheme in w3m if it clashes with your *term settings, or just try this out in a plain vanilla black and white terminal.

    apt-get install surfraw w3m

    export PATH=$PATH:/usr/lib/surfraw

    export SURFRAW_graphical=no

    export SURFRAW_browser=/usr/bin/w3m

    export SURFRAW_text_browser=/usr/bin/w3m

    export SURFRAW_graphical_browser=/usr/bin/iceweasel

    export SURFRAW_graphical_remote=yes

    google hello # (clickable results "in" the terminal)

    google slashdot | grep Cached | head

    slashdot.org/ - 76k - Cached - Similar pages
    slashdot.org/bookmark.pl?url - 13k - Cached - Similar pages
    en.wikipedia.org/wiki/Slashdot - 83k - Cached - Similar pages
    en.wikipedia.org/wiki/Slashdot_effect - 34k - Cached - Similar pages
    Cached - Similar pages
    yro.slashdot.org/ - 44k - Cached - Similar pages
    yro.slashdot.org/yro/07/05/02/0235228.shtml - 451k - Cached - Similar pages
    hardware.slashdot.org/ - 40k - Cached - Similar pages
    Cached - Similar pages
    politics.slashdot.org/ - 45k - Cached - Similar pages

    It's also possible to write some scripts so that w3m can open new terminals when clicking a link, and if you cannot live without images inside a terminal, there's the w3m-img package you can install.

    I also like to use w3mman as the system man pager, which lets me click on urls and file paths referenced inside a man page.

  20. Re:New Home Page by Skuldo · · Score: 2, Informative

    When the results come up, type the number of one and hit enter.

  21. Re:Ironic... by kramulous · · Score: 3, Informative

    I can verify that it doesn't work with lynx either.

    --
    .
  22. Re:Totally geeky by Dolda2000 · · Score: 3, Informative

    You may also want to try Vimperator, a Firefox extension for controlling the browser entirely with the keyboard, with vi-like keybindings. It's not perfect, but I find it much more convenient than the standard mouse-driver interface.

  23. Re:DIY Commandline Google by atomic-penguin · · Score: 2, Informative
    That's a good start. However that will not make use of the boolean operators or do multiple word searches that way.

    #!/usr/bin/perl

    my $goog_query=qq/@ARGV/;

    $goog_query =~ s/\+/%2b/g; # Change AND operators (+ signs) to hex code
    $goog_query =~ s/\s+/\+/g; # Change spaces to + signs

    my $goog_output=qx!curl -s -A Mozilla/5.0 "http://www.google.com/search?q=$goog_query" | html2text -ascii!;

    # TODO
    # put a regex here to clean up extra crufty output
    # (i.e. headers, footers, advertisements).

    print $goog_output;
    --
    /^([Ss]ame [Bb]at (time, |channel.)){2}$/
  24. Re:Totally geeky by dotancohen · · Score: 3, Informative

    You may also want to try Vimperator, a Firefox extension for controlling the browser entirely with the keyboard, with vi-like keybindings. It's not perfect, but I find it much more convenient than the standard mouse-driver interface. Vimperator really is a great product, I even donated to the developer recently. I am browsing with it now, and I am not a VI-junkie either. In fact, I now intend to learn VI because Vimperator has made browsing that much easier.

    My favorite features:
    * Best hit-a-hint implementation. There are other extensions that do this, but vimperator is the easiest to use on a laptop with no numpad.
    * j/k scrolling. This is so convenient that I don't understand why it is not the default
    * Cleaner interface. No menu, location bar, nothing but the status bar until you start a command.
    * Next/Previous buttons. Vimperator finds the "next" and "previous" links in webpages and follows them when you click ]] and [[.
    * I could go on and on.
    --
    It is dangerous to be right when the government is wrong.
  25. Complete solution by professorfalcon · · Score: 2, Informative

    It even has tab-completion!

  26. Re:Totally geeky by rizole · · Score: 2, Informative

    I use "search for text when I start typing" as default. Lets me surf with minimal use of the mouse, capturing all keyboard input as search would break that for me.

  27. One big downside... by digitalaudiorock · · Score: 2, Informative

    Ahh...just discovered one big downside. In firefox under Linux I can't search for something by pasting it (with the middle mouse) as, unlike with a text box, firefox assumes I'm pasting a url...bummer.

    I noticed the same sort of thing creating an ebay auction some time ago...their fancy ajax text entry (unless I'm missing something) seems to defy any form of text pasting (as it's not an actual text box or text area).

  28. Re:Ironic... by beckerist · · Score: 2, Informative

    This is my theory:
    Cake, in this sense, is used as a verb. "To cake:" v. The process of not only having your cake, but eating it too.
    So, by saying "the cake is a lie" is much like saying "the eating is a lie." The noun (cake) may exist, but the act of eating it is only promised, but never given.