import urllib.request, urllib.error, urllib.parse
from lxml import etree
url = 'http://www.example.com/servlet/av/ResultTemplate=AVResult.html'
response = urllib.request.urlopen(url)
htmlparser = etree.HTMLParser()
tree = etree.parse(response, htmlparser)
tree.xpath(xpathselector)
мы можем использовать xpath с BeautifulSoup?