from lxml.etree import parse import urllib
usock = urllib.urlopen('http://users.auth.gr/~aamikrop/test.html') data = usock.read() data = data.decode('utf8') # it doesn't work neither with or without this line parse(data)
from lxml.etree import parse
import urllib
usock = urllib.urlopen('http:// users.auth. gr/~aamikrop/ test.html')
data = usock.read()
data = data.decode('utf8') # it doesn't work neither with or without this line
parse(data)