PornHub-downloader-python icon indicating copy to clipboard operation
PornHub-downloader-python copied to clipboard

Unable to download webpage error

Open TheMissingPort opened this issue 3 years ago • 1 comments

When I enter python3 phdler.py custom url, I get the following error:

ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))

Any suggestions? Thanks

TheMissingPort avatar May 06 '21 05:05 TheMissingPort

The site is blocked use VPN or just add support for VPN by adding the following to the file (both .py files)

import os
proxy = 'http://192.168.42.129:8080'

os.environ['http_proxy'] = proxy 
os.environ['HTTP_PROXY'] = proxy
os.environ['https_proxy'] = proxy
os.environ['HTTPS_PROXY'] = proxy

here in place of the 192.168.... add your proxy and port

vineetkrgupta avatar May 16 '21 19:05 vineetkrgupta