lxml
lxml: split at attribute?
I\'m using lxml to scrape some HTML that l开发者_C百科ooks like this: <div align=center><a style=\"font-size: 1.1em\">Football</a></div>[详细]
2023-03-12 06:33 分类:问答How to get the default value set by the xml schema?
I\'ve got an xml schema which specifies a default value for an optional field... <xs:element name=\"expiry\" type=\"xs:positiveInteger\" default=\"86400\"/>[详细]
2023-03-11 15:01 分类:问答querying abstract elements in xpath with python
I\'d like to make some xpath queries over abstract elements on the KML schema (like //AbstractFeatur开发者_如何学GoeType on a kml file).[详细]
2023-03-10 23:17 分类:问答lxml only loading a single network entity before raising XMLSyntaxError
I am writing code to work with Amazon query based APIs, which return XML which I then wish to parse with lxml. I have written several functions which work perfectly to load the XML and parse it.[详细]
2023-03-09 13:49 分类:问答Editing tree in place while iterating in lxml
I am using lxml to parse html and edit it to produce a new document. Essentially, I\'m trying to use it somewhat like the javascript DOM - I know this is not really the intended use, but much of it wo[详细]
2023-03-09 05:14 分类:问答selecting attribute values from lxml
I want to use an xpath expression to get the value of an attribute. I expected the following to work from lxml import etree[详细]
2023-03-08 13:18 分类:问答Python lxml/beautiful soup to find all links on a web page
I am writing a script to read a web page, and build a database of links that matches a certain criteria.Right now I am stuck with lxml and understanding how to grab all the <a href>\'s from the[详细]
2023-03-08 05:04 分类:问答Python lxml wrapping elements
I was wondering what the easiest way to wrap an element with another element using lxml and Python for example if I have a html snippet:[详细]
2023-03-07 02:12 分类:问答Python object wrapper for lxml etree?
Given lxml.etree is it possible to somehow construct an object representation of the tree, so that sub-elements can be accessed in object-like fashion (with \'.\' operator)?[详细]
2023-03-04 23:14 分类:问答Checking XML Nodes with Script using REGEX
Bit of a problem here, basically I have a web address that I use a GET with. for example 111.244.25.633/Data.XML (Don\'t worry about the IP, it\'s just made up for a device) that returns an XML file.[详细]
2023-03-03 00:43 分类:问答