All pastes #87137 Raw Edit

Untitled

public python v1 · immutable
·published 2006-07-13 17:32 UTC
rendered paste body
import redef get_favicon_url(url):    icon_url = url    if not re.match("http(s{0,1})://",icon_url):        slash_pos = icon_url.find('/')    else:        slash_pos = icon_url.find('/',7)    icon_url = icon_url[:slash_pos]+'/favicon.ico'    return icon_url