document_fromstring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxml2 |
Fix Released
|
Critical
|
|||
lxml |
Invalid
|
Medium
|
Unassigned |
Bug Description
I use lxml to parse the contents of the url(http://
My environment is lxml-2.2.2. ubutnu-
import lxml.html as htmltool
import urlib
url = "http://
f = urllib.urlopen(url)
data = f.read()
doc = htmltool.
and use the following code if it is feasible.
====sample 1:
import lxml.html as htmltool
import urlib
url = "http://
doc = htmltool.parse(url) ## <--- ok
====My question:
why the document_fromstring can not work ?and the lxml.html.parse and lxml.html.
Thank you
Changed in libxml2: | |
status: | Unknown → Fix Released |
Changed in libxml2: | |
importance: | Unknown → Critical |
Reproducible with libxml2 2.7.3. This seems to be a problem in libxml2 rather than lxml. I'll ask over there.