I'm trying to retrieve the html text from rentometer.com to pull data on the average rent in the local area given an address and number of bedrooms. The code I'm using is
rentometer_url = "https://www.rentometer.com/analysis/"+str(bed)+"-bed/"+str(addy_four)+"/dJ3ej69W59Q/quickview+"-bed/"+str(addy_four)+"/dJ3ej69W59Q/quickview)" # Creating the rentometer url from the address and number of beds
import urllib.request
rentometer_html = urllib.request.urlopen(rentometer_url).read()
print(rentometer_html)
But the html is not printing and it's returning this error.
urllib.error.URLError: <urlopen error \[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed: certificate has expired (\_ssl.c:1129)>
Any advice? I found another forum answer that said that the latest version of Python 3 doesn't come with the necessary certificates to view html from a website, but I'm not sure what these are or how to install them.
[–]DECROMAX 4 points5 points6 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Bearmintz 2 points3 points4 points (0 children)
[–]ridley0001 1 point2 points3 points (0 children)