Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit a0d0dc8

Browse files
author
Henri
committed
Now prints the full query URL before showing the results.
1 parent c704f0d commit a0d0dc8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2008-10-15 Henri Häkkinen <henux@users.sourceforge.net>
22

3-
* google: Added options -l and -C.
3+
* google: Added options -l and -C. Now prints the full query URL
4+
before showing the results.
45
* google.1: Fixed typos and added info for options -l and -C.
56
* Makefile: Added install and uninstall scripts.
67

google

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ url += "q=" + quote_plus(keywords[0])
167167
for kw in keywords[1:]:
168168
url += "+" + quote_plus(kw)
169169

170+
if colorize:
171+
print "\x1B[96m"
172+
print "http://www.google.com%s" % url
173+
print
174+
170175
# Connect to Google and request the result page.
171176
conn = HTTPConnection("www.google.com")
172177
conn.request("GET", url)

google.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ for Finnish.
2929
Open the first result in a web browser.
3030
.TP
3131
.B \-C
32-
Colorizes the output using ANSI escape codes.
32+
Colorize the output using ANSI escape codes.
3333
.SH ENVIRONMENT
3434
.TP
3535
.BI BROWSER

0 commit comments

Comments
 (0)