i = sk.find('href="')
TypeError: expected an object with the buffer interface
import urllib.request
u = urllib.request.urlopen('http://python.su/')
h = u.fileno()
s = 0
while s != h:
sk = next(u)
i = sk.find('href="')
if i != -1:
print(sk[i:len(sk)])
s = s + 1