Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
430 stars 110 forks source link

Added SSL_VERIFY flag #63

Closed mukthy closed 2 months ago

mukthy commented 10 months ago

Added SSL_VERIFY flag as with some of the proxy providers it throws SSL errors like below:

(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

This flag will take "True" or "False" or path-to-ca.crt file.

It also helps in not installing and configuring the Proxy CA cert for each proxy provider every time in case of planning to use a proxy provider temporarily.

Nv7-GitHub commented 10 months ago

Can you add an example to the README?

mukthy commented 9 months ago

@Nv7-GitHub I have added an example in README. Please check: https://github.com/Nv7-GitHub/googlesearch/pull/67

nicolaswehmeyer commented 3 months ago

Would be great if that can be added to the library! I ran into the same issue and needed to fix it locally until I found it here. @Nv7-GitHub can you merge that change in?

Nv7-GitHub commented 3 months ago

I'll take a look at it in April!

nicolaswehmeyer commented 3 months ago

I'll take a look at it in April!

Thanks @Nv7-GitHub - that’s highly appreciated!!