0x776b7364 / toggle.sg-download

Python script to automate Toggle.sg video downloads
MIT License
26 stars 18 forks source link

Error Verifying certificate? #59

Open AkiraSEI opened 4 years ago

AkiraSEI commented 4 years ago

I am trying to download the following: https://video.toggle.sg/en/series/oru-naal-koothu/ep1/860527

Mac OS Mojave with Python 2.7, homebrew and ffmpeg manually installed.

Code shown below:

Toggle video https://video.toggle.sg/en/series/oru-naal-koothu/ep1/860527 detected Traceback (most recent call last): File "./download_toggle_video2.py", line 511, in main() File "./download_toggle_video2.py", line 483, in main records_to_enqueue = process_url(input_url) File "./download_toggle_video2.py", line 176, in process_url return process_video_url(url) File "./download_toggle_video2.py", line 212, in process_video_url t_video_url_resp = urllib_request.urlopen(t_video_url_req).read() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open context=self._context) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open raise URLError(err) urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>