Techcatchers / PyLyrics-Extractor

Get Lyrics for any songs by just passing in the song name (spelled or misspelled) in less than 2 seconds using this awesome Python Library.
MIT License
52 stars 17 forks source link

bad handshake: Error #3

Closed anubhavagar closed 4 years ago

anubhavagar commented 4 years ago

On line: extract_lyrics = Song_Lyrics(GCS_API_KEY, GCS_ENGINE_ID)

Getting below error: HTTPSConnectionPool(host='www.googleapis.com', port=443): Max retries exceeded with url: /customsearch/v1/siterestrict?key=XXXXXX&q=summer%20of%2069%20lyrics (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

Can you please advise

Techcatchers commented 4 years ago

I tried getting 'summer of 69 lyrics' lyrics from PyLyrics-Extractor on Python 3.7.5 and it worked fine.

Could you please elaborate on your issue with Python version, script and steps to reproduce the above error?

anubhavagar commented 4 years ago

Python 3.6 Running code in local on windows machine, using anaconda virtual environment Issue while searching any song

On Wed 15 Apr, 2020, 10:33 PM Rishabh Agrawal, notifications@github.com wrote:

I tried getting 'summer of 69 lyrics' lyrics from PyLyrics-Extractor and it worked fine.

Could you please elaborate on your issue with Python version, script and steps to reproduce the above error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Techcatchers/PyLyrics-Extractor/issues/3#issuecomment-614161042, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQWMASWMOZSR3TM4TZR7HDRMXSG7ANCNFSM4MIQMRXQ .

Techcatchers commented 4 years ago

Did you set yourself a custom search engine?

Did you replace 'GCS_API_KEY' and 'GCS_ENGINE_ID' with the API key and Engine ID received while instantiating the class?

Also please try following the readme. All the links are available on how to set it up.

anubhavagar commented 4 years ago

Yes it is working fine when I run code on kaggle or Google colab notebooks, issue happen on local machine

On Wed 15 Apr, 2020, 11:03 PM Rishabh Agrawal, notifications@github.com wrote:

Did you set yourself a custom search engine?

Did you replace 'GCS_API_KEY' and 'GCS_ENGINE_ID' with the API key and Engine ID received while instantiating the class?

Also please try following the readme https://github.com/Techcatchers/PyLyrics-Extractor/blob/master/README.md. All the links are available on how to set it up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Techcatchers/PyLyrics-Extractor/issues/3#issuecomment-614176730, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQWMAVTHA737WB3GE2F4TTRMXVVTANCNFSM4MIQMRXQ .

Techcatchers commented 4 years ago

Check if requests library is updated to the latest version. Go to line 29, 37, 48 in lyrics.py and add verify=False as kwargs in requests.get method and try again.

Read this for more: https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification

:)