You can use the ssl module to create a secure connection and read the contents of an HTTPS URL.