GHC 2020-05-08

5 comments.

, https://git.io/JfcP2 in jarun/googler
Implement -r, --reverse option
==============================

Related #281.

```
$ /googler -r google

 5.  Google - YouTube
     https://www.youtube.com/Google
     Experience the world of Google on our official YouTube channel. Watch videos about our products, technology, company happenings and more. Subscribe
     to ...

 4.  Google - About Google, Our Culture & Company News
     https://about.google/
     Stay up to date with Google company news and products. Discover stories about our culture, philosophy, and how Google technology is impacting others.

 3.  Browse All of Google's Products & Services - Google
     https://about.google/products/
     Browse a list of Google products designed to help you work and play, stay organized, get answers, keep in touch, grow your business, and more.

 2.  The Keyword | Google
     https://www.blog.google/
     Discover all the latest about our products, technology, and Google culture on our official blog.

 1.  Google
     https://www.google.com/
     Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're
     looking ...
```

, https://git.io/JfcPa in jarun/googler
That's easy enough.

, https://git.io/JfcWr in jarun/googler
For the record: tested on Windows already, no socket API incompatibilities there.

, https://git.io/JfcWo in jarun/googler
This is a bit complex if to be implemented well (compatibility with busybox less, for instance) and there's not a whole lot of interest, especially not from me anymore, so closing for now.

A less polished implementation can be hacked up in ten minutes though. If anyone would like to see it but can't DIY, just ask.

, https://git.io/JfcCl in jarun/googler
Implement --ipv4, --ipv6 options
================================

Resolves #331.

Apparently forgot about this...

```console
$ ./googler --debug -6 google
[DEBUG] googler version 4.1
[DEBUG] Python version 3.6.9
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to [2607:f8b0:4006:801::2004]:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=google&sei=1_E8tJDwEeqCafI8kdi9aw
[DEBUG] Cookie: 1P_JAR=2020-05-08-05
Traceback (most recent call last):
...
__main__.GoogleConnectionError: Connection blocked due to unusual activity. If you are connecting over IPv6 (use --debug to view connection details), the -4, --ipv4 option might help. THIS IS NOT A BUG, please do NOT report it as a bug unless you have specific information that may lead to the development of a workaround. You IP address is temporarily or permanently blocked by Google and requires reCAPTCHA-solving to use the service, which googler is not capable of. Possible causes include issuing too many queries in a short time frame, or operating from a shared / low reputation IP with a history of abuse. Please do NOT use googler for automated scraping.
```

```console
$ ./googler --debug -4 google
[DEBUG] googler version 4.1
[DEBUG] Python version 3.6.9
[DEBUG] Connecting to new host www.google.com
[DEBUG] Opened socket to 172.217.10.68:443
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=google&sei=6VbelpDwEeqCafI8kdi9aw
[DEBUG] Cookie: 1P_JAR=2020-05-08-05
[DEBUG] Response body written to '/tmp/googler-response-2crku6r9.html'.

 1.  Google
     https://www.google.com/
     Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're
     looking ...

...
```