'Return the document contents pointed to by an HTTPS URL.
If something goes wrong (404, timeout, etc.), raise ExpectedError.'

def get(self, url):

    try:
        return self._opener.open(url).read()
    except (HTTPError, IOError) as exc:
        raise ExpectedError(("Couldn't    download    %s." % url), exc)
