MarioVilas / googlesearch

Google search from Python (unofficial).
BSD 3-Clause "New" or "Revised" License
1.14k stars 390 forks source link

Python 3.6+ usage #50

Closed andrew-cui-zz closed 5 years ago

andrew-cui-zz commented 6 years ago

In documentation, please add that pip3 cannot be used to install the package currently (at least, did not work on my computer).

Moreover, the program uses https certification on the search URLs, which will break usage on OSX Yosemite+ with Python 3.6+. To fix this, Python users on OSX need to install updated certificates that do not come with default on this Mac installation of Python. The code to be run is /Applications/Python\ 3.6/Install\ Certificates.command and can be found in the README.md at /Applications/Python\ 3.6/ReadMe.rtf.

Specifically, if users do not install this and attempt to run (as I did), they will run into issues akin to "URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed"

For more information especially about the latter, see the following post: [https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error](StackOverflow on urllib SSL)

MarioVilas commented 6 years ago

That seems a lot like a Mac specific problem, not a Py3k one... unless I’m missing something.

MarioVilas commented 5 years ago

Closing due to inactivity.