Gisele

所属分类:内容生成
开发工具:PHP
文件大小:192KB
下载次数:0
上传日期:2012-06-24 21:42:53
上 传 者sh-1993
说明:  Google CLI Search-Gisele允许在CLI上执行Google Search(当前支持图像搜索、Web搜索和新闻...
(Google CLI Search - Gisele allows to do Google Search on CLI (currently supports Image search, Web search, and News search))

文件列表:
LICENCE (480, 2012-06-25)
bin (0, 2012-06-25)
bin\compile (781, 2012-06-25)
bin\gisele (787, 2012-06-25)
build (0, 2012-06-25)
build\gisele.phar (1013698, 2012-06-25)
composer.json (703, 2012-06-25)
composer.lock (3222, 2012-06-25)
src (0, 2012-06-25)
src\Gisele (0, 2012-06-25)
src\Gisele\Command (0, 2012-06-25)
src\Gisele\Command\ImageSearchCommand.php (3064, 2012-06-25)
src\Gisele\Command\NewsSearchCommand.php (4141, 2012-06-25)
src\Gisele\Command\SearchCommand.php (4418, 2012-06-25)
src\Gisele\Command\WebSearchCommand.php (3173, 2012-06-25)
src\Gisele\Console (0, 2012-06-25)
src\Gisele\Console\Application.php (2197, 2012-06-25)
src\Gisele\Gisele.php (589, 2012-06-25)
src\Gisele\PharCompiler.php (3694, 2012-06-25)
src\bootstrap.php (980, 2012-06-25)

Gisele - Google CLI Search ===================================== Gisele is simple tool which allows you to make a Google search in CLI Installation -------------------- 1. Download the [`gisele.phar`](https://github.com/borisguery/Gisele/raw/master/build/gisele.phar) executable 2. Run Gisele: `php gisele.phar` Installation from Source ------------------------ 1. Run `git clone https://github.com/borisguery/Gisele.git` 2. Run Composer to get the dependencies: `composer install` (see Composer [documentation](http://getcomposer.org/doc/)) You can now run Gisele by executing the `bin/gisele` script: `php /path/to/gisele/bin/gisele` Usage ----- There are actually three search commands available. ### web `php gisele.phar web "boris guery"` ### image `php gisele.phar image "php logo"` ### news `php gisele.phar news "php"` All commands have the following options: ``` sh --throttle (-t) ``` 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) 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 ``` How do I save results while display them to the screen? ``` sh php gisele.phar news "github" | tee results.txt ``` Contributing ------------ If you have some time to spare on an useless project and would like to help take a look at the [list of issues](http://github.com/borisguery/gisele/issues). Requirements ------------ * PHP 5.3+ * Internet connection Authors ------- Boris Gury - - - License ------- Gisele is licensed under the WTFPL License - see the LICENSE file for details About ----- This tool has mostly been written as a proof-of-concept while experimenting with Symfony2, Goutte, Composer and PHAR creation. Most part of this application is heavily inspired by Composer and Symfony2 source code. Legal Notes ----------- 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.

近期下载者

相关文件


收藏者