Did you test for any regressions?
googler
works fine on it.
def google_get(conn, url):
"""Send a GET request to Google with the appropriate headers.
url can be relative (to the appropriate Google domain).
"""
global ua
conn.set_tunnel("www.google.com")
conn.request("GET", url, None, {
"Accept-encoding": "gzip",
"User-Agent": ua,
"Cookie":cookie,
"Accept":accept,
"Accept-Encoding":acceptencoding,
"Accept-Language":acceptlanguage,
"Cache-Control":cachecontrol,
"Connection":connection,
"Host":host,
"Upgrade-Insecure-Requests":UpgradeInsecureRequests,
})
return conn.getresponse()
def new_connection(domain=None):
"""Returns a new connection to the given domain with appropriate options.
When the given domain is absent, the global variable server is used instead.
"""
global server
#return http.client.HTTPSConnection(domain if domain else server, timeout=45)
return http.client.HTTPSConnection("proxy_host",proxy_port)
w3m
in https://www.afpy.org/doc/python/3.2/library/webbrowser.html
BROWSER=w3m googler query
and it should work when you open URLs inside googler, but in reality, we currently have trouble integrating with text-based browsers due to stdin and stdout redirected to /dev/null in https://github.com/jarun/googler/blob/dfc988f16c7e17bb691b3ef4e154f17ae5436588/googler#L93-L109. See jarun/googler#125. Rest assured, it's not a hard technical problem; we just need to figure out the most user-friendly solution after some discussion. A temporary workaround can be found in jarun/googler#125 too; see "Temporary workaround".