No commit activity in last 3 years
No release in over 3 years
A ruby gem to give you the power of Google Search in your command line and copy links to your clipboard
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.5

Runtime

 Project Readme

google-copy-link

The CLI displays results from the Google Web Search API, allows you to page through the results, and choose a url to copy to your clipboard, all without leaving the command line.

Screenshot of goo in action!

Installation

gem install google-copy-link # Requires Ruby 1.9

Usage Examples

Typing goo --help will list all the available commands. They are also listed here.

The goo gem is a simple tool to search Gooogle and copy a search result link to your clipboard.
Usage:
    goo [options] "my search query string here"
where [options] are:
      --markdown, -m:     Use markdown format when copying link to clipboard. Example: \[Trollop\]\(http://trollop.rubyforge.org/\) (Default: false)
        --page, -p <i>:   Start by showing the <i>th result page. (Default: 1)
        --size, -s <i>:   Show <i> results on each SERP. Must be between 1 and 8. (Default: 4)
      --result, -r <i>:   Skip the SERP and show the <i>th result.
            --help, -h:   Show this information and exit.

At the prompt, type the index of a search result, it will be copied to your clipboard.

If you press , the first search result link will be copied.

ONLY TESTED with a mac. Should work on linux and windows thanks to clipboard gem;)

When writing blog posts in Markdown or looking for libraries in google, I became tired to repeat the whole manual search process in the browser so I found a way to automate it;)

Search on a single site

goo 'site:randsinrepose.com NADD'

Features

  • You have access to all the search operators you've come to know and love in Google Search.

  • Results are shown in markdown for a good balance between legibility and document heirarchy. (Shoutout to reverse_markdown!)

  • Results pages are formatted to look like a Google SERP, including colors, domains, descriptions, and bold search matches. (Shoutout to formatador!)

Supported Ruby Versions

This library has only been tested against Ruby 1.9.3. Other versions might be supported, but they haven't been tested.

Acknowledgements

Most of the code is a fork of Kerrick Long. See LICENSE for details.

This gem is Powered by Google.

Copyright

Copyright (c) 2012 Jean-Michel Garnier. See LICENSE for details.

Dependencies