Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit f7427b0

Browse files
committed
Prepare for release v4.3
1 parent a9189dc commit f7427b0

File tree

7 files changed

+26
-7
lines changed

7 files changed

+26
-7
lines changed

Diff for: CHANGELOG

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
googler 4.3
2+
2020-10-10
3+
4+
- fix recent break due to server-side changes
5+
- option `-e`/`--exclude` to exclude site from results
6+
- option `-g`/`--geoloc` to specify geolocation
7+
- replace uuid1 with uuid4 in request
8+
9+
-------------------------------------------------------------------------------
10+
111
googler 4.2
212
2020-07-28
313

Diff for: README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ To remove `googler` and associated docs, run
229229

230230
To install the latest stable version, run
231231

232-
$ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.2/googler && sudo chmod +x /usr/local/bin/googler
232+
$ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.3/googler && sudo chmod +x /usr/local/bin/googler
233233

234234
You could then let googler upgrade itself by running
235235

@@ -252,10 +252,10 @@ Search keyword and option completion scripts for Bash, Fish and Zsh can be found
252252
#### Cmdline options
253253

254254
```
255-
usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-x] [--colorize [{auto,always,never}]]
256-
[-C] [--colors COLORS] [-j] [-t dN] [--from FROM] [--to TO] [-w SITE] [--unfilter]
257-
[-p PROXY] [--notweak] [--json] [--url-handler UTIL] [--show-browser-logs] [--np] [-4]
258-
[-6] [-u] [--include-git] [-v] [-d]
255+
usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-g CC] [-x]
256+
[--colorize [{auto,always,never}]] [-C] [--colors COLORS] [-j] [-t dN] [--from FROM]
257+
[--to TO] [-w SITE] [-e SITE] [--unfilter] [-p PROXY] [--notweak] [--json]
258+
[--url-handler UTIL] [--show-browser-logs] [--np] [-4] [-6] [-u] [--include-git] [-v] [-d]
259259
[KEYWORD [KEYWORD ...]]
260260
261261
Google from the command-line.
@@ -271,6 +271,8 @@ optional arguments:
271271
-V, --videos show results from videos section
272272
-c TLD, --tld TLD country-specific search with top-level domain .TLD, e.g., 'in' for India
273273
-l LANG, --lang LANG display in language LANG
274+
-g CC, --geoloc CC country-specific geolocation search with country code CC, e.g. 'in' for India.
275+
Country codes are the same as top-level domains
274276
-x, --exact disable automatic spelling correction
275277
--colorize [{auto,always,never}]
276278
whether to colorize output; defaults to 'auto', which enables color when stdout

Diff for: auto-completion/bash/googler-completion.bash

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ _googler () {
1818
-V --videos
1919
-c --tld
2020
-l --lang
21+
-g --geoloc
2122
-x --exact
2223
--colorize
2324
-C --nocolor
@@ -45,6 +46,7 @@ _googler () {
4546
-n --count
4647
-c --tld
4748
-l --lang
49+
-g --geoloc
4850
--colorize
4951
--colors
5052
-t --time

Diff for: auto-completion/fish/googler.fish

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ complete -c googler -s N -l news --description 'show results from n
2020
complete -c googler -s V -l videos --description 'show results from videos section'
2121
complete -c googler -s c -l tld -r --description 'country-specific search with top-level domain'
2222
complete -c googler -s l -l lang -r --description 'display in specified language'
23+
complete -c googler -s g -l geoloc -r --description 'specify geolocation code'
2324
complete -c googler -s x -l exact --description 'disable automatic spelling correction'
2425
complete -c googler -l colorize -r --description 'whether to colorize output (options: auto/always/never)'
2526
complete -c googler -s C -l nocolor --description 'disable color output'

Diff for: auto-completion/zsh/_googler

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ args=(
4141
'(-V --videos)'{-V,--videos}'[show results from videos section]'
4242
'(-c --tld)'{-c,--tld}'[country-specific search with top-level domain]:top level domain without dot'
4343
'(-l --lang)'{-l,--lang}'[display in specified language]:language code'
44+
'(-g --geoloc)'{-g,--geoloc}'[specify geolocation]:code'
4445
'(-x --exact)'{-x,--exact}'[disable automatic spelling correction]'
4546
'(--colorize)--colorize[whether to colorize output]:auto/always/never'
4647
'(-C --nocolor)'{-C,--nocolor}'[disable color output]'

Diff for: googler

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ except ValueError:
8989

9090
# Constants
9191

92-
_VERSION_ = '4.2'
92+
_VERSION_ = '4.3'
9393
_EPOCH_ = '20201001'
9494

9595
COLORMAP = {k: '\x1b[%sm' % v for k, v in {

Diff for: googler.1

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "GOOGLER" "1" "28 Jul 2020" "Version 4.2" "User Commands"
1+
.TH "GOOGLER" "1" "10 Oct 2020" "Version 4.3" "User Commands"
22
.SH NAME
33
googler \- Google from the command-line
44
.SH SYNOPSIS
@@ -43,6 +43,9 @@ Country-specific search with top-level domain \fI.TLD\fR, e.g., \fBin\fR for Ind
4343
.BI "-l, --lang=" LANG
4444
Search for the language \fILANG\fR, e.g., \fBfi\fR for Finnish.
4545
.TP
46+
.BI "-g, --geoloc=" CC
47+
Country-specific geolocation search with country code CC, e.g. 'in' for India. Country codes are the same as top-level domains.
48+
.TP
4649
.B "-x, --exact"
4750
Disable automatic spelling correction. Search exact keywords.
4851
.TP

0 commit comments

Comments
 (0)