Kind of a pre-release. Still undocumented and thoroughly tested...
domonic now includes a lib for xpath: https://pypi.org/project/elementpath/
early days but lots of unit tests just seem to be working out of the box.
gotchas : attributes require underscore... thinking about how to solve that atm.
for usage examples see /tests/test_webapi.test_xpath... i.e.
import requests
r = requests.get("http://eventual.technology")
page = domonic.parseString(r.content.decode("utf-8")) NOTE - requires install html5lib
evaluator = XPathEvaluator()
expression = evaluator.createExpression("//h1")
result = expression.evaluate(page, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE)
print(str(result.nodes[0]))