get_title now will make requests to HTTPS sites.

This commit is contained in:
Neal Poole
2011-08-27 11:54:20 -04:00
committed by Neil Williams
parent e88adc7e5b
commit 06dea8a4db

View File

@@ -233,7 +233,7 @@ def path_component(s):
def get_title(url):
"""Fetches the contents of url and extracts (and utf-8 encodes)
the contents of <title>"""
if not url or not url.startswith('http://'):
if not url or not (url.startswith('http://') or url.startswith('https://')):
return None
try: