doc = parse(url).getroot() links = doc.xpath("//a[text()='some text']") ... (see the lxml docs for the XPath class, but it also works for the xpath() method).
確定! 回上一頁