PUBLIC   marks

ON THIS LINK

getElementsBySelector - CSS Query Selector for HTML DOM < Scripts < Python < Bin-Co

by karlcow

getElementsBySelector is a python function which takes a standard CSS style selector and returns an array of elements objects from the document that match that selector. This is a frequently used function in JavaScript - if you use a library. Its kind of meaning less to have this function in the server side - unless you are doing screen-scarping. Then its very useful. Recently, I had to work on a Django app that does a bit of screen-scrapping - so I created this function to aid me.

Comments

No comment on this link yet. React !


PUBLIC TAGS
on this link

cssselector   dom   python  

BY

karlcow
the 25/10/2009 at 11:54