Top "Lxml" questions

lxml is a full-featured, high performance Python library for processing XML and HTML.

How to use regular expression in lxml xpath?

I'm using construction like this: doc = parse(url).getroot() links = doc.xpath("//a[text()='some text']") But I need to …

python regex xpath lxml
Python Lxml (objectify): Checking whether a tag exists

I need to check whether a certain tag exists in an xml file. For example, I want to see if …

python xml lxml objectify
How to match a text node then follow parent nodes using XPath

I'm trying to parse some HTML with XPath. Following the simplified XML example below, I want to match the string …

python html xpath lxml
Remove all javascript tags and style tags from html with python and the lxml module

I am parsing an html document using the http://lxml.de/ library. So far I have figured out how to …

python html lxml
lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

I have a perplexing problem. I have used mac version 10.9, anaconda 3.4.1, python 2.7.6. Developing web application with python-amazon-product-api. i have overcome …

python amazon lxml osx-mavericks
Installing easy_install... to get to installing lxml

I've come to grips with the fact that ElementTree isn't going to do what I want it to do. I've …

python lxml easy-install
How can I view a text representation of an lxml element?

If I'm parsing an XML document using lxml, is it possible to view a text representation of an element? I …

python xml lxml
Scraperwiki + lxml. How to get the href attribute of a child of an element with a class?

On the link that contains 'alpha' in the URL has many links(hrefs) which I would like to collect from 20 …

python web-scraping lxml scraperwiki
How should I deal with an XMLSyntaxError in Python's lxml while parsing a large XML file?

I'm trying to parse an XML file that's over 2GB with Python's lxml library. Unfortunately, the XML file does not …

python xml encoding lxml
How can I parse HTML with html5lib, and query the parsed HTML with XPath?

I am trying to use html5lib to parse an html page in to something I can query with xpath. …

python parsing xpath lxml html5lib