niklasb / dryscrape

[not actively maintained] A lightweight Python library that uses Webkit to enable easy scraping of dynamic, Javascript-heavy web pages
http://dryscrape.readthedocs.io/
MIT License
533 stars 67 forks source link

Node API could use navigation features #3

Closed pommygranite closed 12 years ago

pommygranite commented 12 years ago

Though the DOM can be navigated with xpath commands, an improved API would allow navigation of the tree without resorting to it. Eg. getchildren() - returns list of child tag Nodes getattributes() - returns list of attribute Nodes getparent() - returns parent Node

niklasb commented 12 years ago

I added parent() and children() in d0bdf24, as for attributes(), please see my comment to the other issue :)

pommygranite commented 12 years ago

Thanks, these two work.