PornHub-downloader-python
PornHub-downloader-python copied to clipboard
Unable to download webpage error
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
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