Good Morning All,
I've been trying to access a website through Python 2.7 that is HTTPS but have not been able to access the content, and days of research have not helped out. The website is: https://www.cioh.org.co/. In Python, I'd like to be able to access the page and retrieve all the HTML content. In the past, I'd use the ssl module and add the following lines of code at the top:
import ssl ssl._create_default_https_context = ssl._create_unverified_context
This time, that doesn't work and I get the error: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) when using the requests module with requests.get('https://www.cioh.org.co/')
From certain websites, some pointed out to use: import requests r = requests.get(URL, verify=False) print r.text
I've tried that as well but it doesn't actually scrape the content. It simply retrieves the internal header information from the website as such:
<html>
<head>
<META NAME="robots" CONTENT="noindex,nofollow">
<script src="/_Incapsula_Resource?SWJIYLWA=5074a744e2e3d891814e9a2dace20bd4,719d34d31c8e3a6e6fffd425f7e032f3">
</script>
<body>
</body></html>
The printed response is nothing like the website. Through countless research, I've tried using the certifi module. I also installed OpenSSL and extracted .crt, .key, and .pem files (and tried using them) and still no luck. I can expand upon further research I've done if need be.
The website, if using any browser can be easily accessed. Any help would be greatly appreciated.
Side Note: This is my first time creating an account and asking a question. If I wasn't clear with anything, please let me know. Thanks in advance.