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

Commit

Permalink
Prepare for release v4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Oct 10, 2020
1 parent a9189dc commit f7427b0
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions auto-completion/bash/googler-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ _googler () {
-V --videos
-c --tld
-l --lang
-g --geoloc
-x --exact
--colorize
-C --nocolor
Expand Down Expand Up @@ -45,6 +46,7 @@ _googler () {
-n --count
-c --tld
-l --lang
-g --geoloc
--colorize
--colors
-t --time
Expand Down
1 change: 1 addition & 0 deletions auto-completion/fish/googler.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions auto-completion/zsh/_googler
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down
2 changes: 1 addition & 1 deletion googler
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ except ValueError:

# Constants

_VERSION_ = '4.2'
_VERSION_ = '4.3'
_EPOCH_ = '20201001'

COLORMAP = {k: '\x1b[%sm' % v for k, v in {
Expand Down
5 changes: 4 additions & 1 deletion googler.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

3 comments on commit f7427b0

@jarun
Copy link
Owner Author

@jarun jarun commented on f7427b0 Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dilawar, @eclipseo, @pabloariasal, @zmwangx, @szlin googler v4.3 is released!

@zmwangx
Copy link
Collaborator

@zmwangx zmwangx commented on f7427b0 Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, there's a bug fix I need to get into this release... Maybe a quick 4.3.1 should do.

@jarun
Copy link
Owner Author

@jarun jarun commented on f7427b0 Oct 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing!

Please sign in to comment.