def reference_url(self, reference_url):
"""????URL
?????????, ?:
??: http://www.ttmark.com/diannao/2014/11/04/470.html
???: www.ttmark.com
"""
proto, rest = urllib.splittype(reference_url)
res, rest = urllib.splithost(rest)
if not res:
self._reference_url = '-'
else:
self._reference_url = res
评论列表
文章目录