dev-master
9999999-dev https://github.com/borisguery/GiseleGisele allows you to do Google Search on CLI (currently supports Image search, Web search, and News search)
WTFPL
The Requires
by Boris Guéry
console search cli google goutte
Gisele allows you to do Google Search on CLI (currently supports Image search, Web search, and News search)
Gisele is simple tool which allows you to make a Google search in CLI, (*1)
gisele.phar
executablephp gisele.phar
git clone https://github.com/borisguery/Gisele.git
composer install
(see Composer documentation)You can now run Gisele by executing the bin/gisele
script: php /path/to/gisele/bin/gisele
, (*2)
There are actually three search commands available., (*3)
php gisele.phar web "boris guery"
, (*4)
php gisele.phar image "php logo"
, (*5)
php gisele.phar news "php"
, (*6)
All commands have the following options:, (*7)
``` sh --throttle (-t), (*8)
The number of seconds between each requests, can be either an integer, or a range like 1,3 (default: '5,10')` ``` sh --interactive (-i) ``` Ask confirmation before fetching next page ``` sh --max-result (-m) ``` The maximum of result to fetch ``` sh --format (-f) ``` Custom format to render the results, depending on the command, the following placeholder are available: `{counter}`, `{title}`, `{link}`, `{from}`, `{ago}` (the last two are only available for the `news` command) ``` sh --lucky (-l) ``` Are you lucky? Stop at the first result Tips & Tricks ------------- How to automaticaly open the result in a browser using the `--lucky` option? ``` sh php gisele.phar web -l "github" -f "{link}" | xargs open $1
(Replace open
by xdg-open
on Linux), (*9)
How to download the 20 first images from search result? ``` sh php build/gisele.phar image -m20 "github" -f "{link}" | xargs wget -P results/ -nd $1, (*10)
How do I save results while display them to the screen? ``` sh php gisele.phar news "github" | tee results.txt
If you have some time to spare on an useless project and would like to help take a look at the list of issues., (*11)
Boris Guéry - guery.b@gmail.com - http://twitter.com/borisguery - http://borisguery.com, (*12)
Gisele is licensed under the WTFPL License - see the LICENSE file for details, (*13)
This tool has mostly been written as a proof-of-concept while experimenting with Symfony2, Goutte, Composer and PHAR creation., (*14)
Most part of this application is heavily inspired by Composer and Symfony2 source code., (*15)
Using this tool may be an infringement of the Google's terms of use (well, this may be unclear in some countries...), use at your own risk., (*16)
Gisele allows you to do Google Search on CLI (currently supports Image search, Web search, and News search)
WTFPL
console search cli google goutte