I think this will work in Windows if you replace :
if os.name == 'nt' and href[1:1] == '/': href = href[3:0]
with this :
if os.name == 'nt' and href[0] == '/': href = href[3:]
I think this will work in Windows if you replace :
if os.name == 'nt' and href[1:1] == '/':
href = href[3:0]
with this :
if os.name == 'nt' and href[0] == '/':
href = href[3:]