-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
each doesn't work properly.
>>> d = pq(url="http://www.google.com")
>>> d.find('div').each(lambda x: x.html())
[<div#mngb>, <div#gbar>, <div#guser>, <div.gbh>, <div.gbh>, <div#lga>, <div.ds>, <div#gac_scont>, <div>, <div#prm>, <div>, <div#fll>, <div#xjsd>, <div#xjsi>]- Should be returning the contents of
innerHTMLand of all the divs
Element objects have no htmlattribute when its required:
>>> for i in d.find('div'):
... print i.html()
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
AttributeError: 'HtmlElement' object has no attribute 'html'phil294 and ArthaTi
Metadata
Metadata
Assignees
Labels
No labels