Top "Lxml" questions

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

Py2exe lxml woes

I have a wxpython application that depends on lxml and works well when running it through the python interpreter. However, …

python wxpython lxml py2exe
How can one replace an element with text in lxml?

It's easy to completely remove a given element from an XML document with lxml's implementation of the ElementTree API, but …

python xml lxml elementtree
Web page scraping gems/tools available in Ruby

I'm trying to scrape web pages in a Ruby script that I'm working on. The purpose of the project is …

ruby html-parsing lxml scrape
Why am I getting this ImportError?

I have a tkinter app that I am compiling to an .exe via py2exe. In the setup file, I …

python lxml py2exe importerror lxml.html
lxml convert element to elementtree

The following test reads a file, and using lxml.html generates the leaf nodes of the DOM/Graph for the …

python element lxml elementtree
lxml not adding newlines when inserting a new element into existing xml

I have a large set of existing xml files, and I am trying to add one element to all of …

python lxml
How can this function be rewritten to implement OrderedDict?

I have the following function which does a crude job of parsing an XML file into a dictionary. Unfortunately, since …

python xml collections lxml
HTML scraping using lxml and requests gives a unicode error

I'm trying to use HTML scraper like the one provided here. It works fine for the example they provided. However, …

python html unicode web-scraping lxml
Why doesn't xpath work when processing an XHTML document with lxml (in python)?

I am testing against the following test document: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3…

python xml xhtml xpath lxml