PUBLIC   marks

PUBLIC MARKS with tag cssselector

Sponsorised links

25 October 2009 11:45

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.

PUBLIC TAGS related to tag cssselector

no tag

Sponsorised links