From f7427b0955a1b87f9307c37e2f0c163090283bd7 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 10 Oct 2020 08:20:54 +0530 Subject: [PATCH] Prepare for release v4.3 --- CHANGELOG | 10 ++++++++++ README.md | 12 +++++++----- auto-completion/bash/googler-completion.bash | 2 ++ auto-completion/fish/googler.fish | 1 + auto-completion/zsh/_googler | 1 + googler | 2 +- googler.1 | 5 ++++- 7 files changed, 26 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 71caf9b..6b55add 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,13 @@ +googler 4.3 +2020-10-10 + +- fix recent break due to server-side changes +- option `-e`/`--exclude` to exclude site from results +- option `-g`/`--geoloc` to specify geolocation +- replace uuid1 with uuid4 in request + +------------------------------------------------------------------------------- + googler 4.2 2020-07-28 diff --git a/README.md b/README.md index ae4e289..cce7bca 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ To remove `googler` and associated docs, run To install the latest stable version, run - $ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.2/googler && sudo chmod +x /usr/local/bin/googler + $ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.3/googler && sudo chmod +x /usr/local/bin/googler You could then let googler upgrade itself by running @@ -252,10 +252,10 @@ Search keyword and option completion scripts for Bash, Fish and Zsh can be found #### Cmdline options ``` -usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-x] [--colorize [{auto,always,never}]] - [-C] [--colors COLORS] [-j] [-t dN] [--from FROM] [--to TO] [-w SITE] [--unfilter] - [-p PROXY] [--notweak] [--json] [--url-handler UTIL] [--show-browser-logs] [--np] [-4] - [-6] [-u] [--include-git] [-v] [-d] +usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-g CC] [-x] + [--colorize [{auto,always,never}]] [-C] [--colors COLORS] [-j] [-t dN] [--from FROM] + [--to TO] [-w SITE] [-e SITE] [--unfilter] [-p PROXY] [--notweak] [--json] + [--url-handler UTIL] [--show-browser-logs] [--np] [-4] [-6] [-u] [--include-git] [-v] [-d] [KEYWORD [KEYWORD ...]] Google from the command-line. @@ -271,6 +271,8 @@ optional arguments: -V, --videos show results from videos section -c TLD, --tld TLD country-specific search with top-level domain .TLD, e.g., 'in' for India -l LANG, --lang LANG display in language LANG + -g CC, --geoloc CC country-specific geolocation search with country code CC, e.g. 'in' for India. + Country codes are the same as top-level domains -x, --exact disable automatic spelling correction --colorize [{auto,always,never}] whether to colorize output; defaults to 'auto', which enables color when stdout diff --git a/auto-completion/bash/googler-completion.bash b/auto-completion/bash/googler-completion.bash index a5c45f6..857eb0b 100644 --- a/auto-completion/bash/googler-completion.bash +++ b/auto-completion/bash/googler-completion.bash @@ -18,6 +18,7 @@ _googler () { -V --videos -c --tld -l --lang + -g --geoloc -x --exact --colorize -C --nocolor @@ -45,6 +46,7 @@ _googler () { -n --count -c --tld -l --lang + -g --geoloc --colorize --colors -t --time diff --git a/auto-completion/fish/googler.fish b/auto-completion/fish/googler.fish index 53b25ed..793f52a 100644 --- a/auto-completion/fish/googler.fish +++ b/auto-completion/fish/googler.fish @@ -20,6 +20,7 @@ complete -c googler -s N -l news --description 'show results from n complete -c googler -s V -l videos --description 'show results from videos section' complete -c googler -s c -l tld -r --description 'country-specific search with top-level domain' complete -c googler -s l -l lang -r --description 'display in specified language' +complete -c googler -s g -l geoloc -r --description 'specify geolocation code' complete -c googler -s x -l exact --description 'disable automatic spelling correction' complete -c googler -l colorize -r --description 'whether to colorize output (options: auto/always/never)' complete -c googler -s C -l nocolor --description 'disable color output' diff --git a/auto-completion/zsh/_googler b/auto-completion/zsh/_googler index fb2deaf..ae730e9 100644 --- a/auto-completion/zsh/_googler +++ b/auto-completion/zsh/_googler @@ -41,6 +41,7 @@ args=( '(-V --videos)'{-V,--videos}'[show results from videos section]' '(-c --tld)'{-c,--tld}'[country-specific search with top-level domain]:top level domain without dot' '(-l --lang)'{-l,--lang}'[display in specified language]:language code' + '(-g --geoloc)'{-g,--geoloc}'[specify geolocation]:code' '(-x --exact)'{-x,--exact}'[disable automatic spelling correction]' '(--colorize)--colorize[whether to colorize output]:auto/always/never' '(-C --nocolor)'{-C,--nocolor}'[disable color output]' diff --git a/googler b/googler index 555cf46..a1db35b 100755 --- a/googler +++ b/googler @@ -89,7 +89,7 @@ except ValueError: # Constants -_VERSION_ = '4.2' +_VERSION_ = '4.3' _EPOCH_ = '20201001' COLORMAP = {k: '\x1b[%sm' % v for k, v in { diff --git a/googler.1 b/googler.1 index 894aac6..8dc45c5 100644 --- a/googler.1 +++ b/googler.1 @@ -1,4 +1,4 @@ -.TH "GOOGLER" "1" "28 Jul 2020" "Version 4.2" "User Commands" +.TH "GOOGLER" "1" "10 Oct 2020" "Version 4.3" "User Commands" .SH NAME googler \- Google from the command-line .SH SYNOPSIS @@ -43,6 +43,9 @@ Country-specific search with top-level domain \fI.TLD\fR, e.g., \fBin\fR for Ind .BI "-l, --lang=" LANG Search for the language \fILANG\fR, e.g., \fBfi\fR for Finnish. .TP +.BI "-g, --geoloc=" CC +Country-specific geolocation search with country code CC, e.g. 'in' for India. Country codes are the same as top-level domains. +.TP .B "-x, --exact" Disable automatic spelling correction. Search exact keywords. .TP