I would like to spider a few blogs and programmatically analyze their html and css-based layouts to see e.g. if the sidebar is to the left or right of the main content, how many columns and how wide they are.
How would I do this the best way? Are there any tools or libraries I can use?
(I would prefer a solution in Python or PHP.)
It seems like this could be achieved via PhantomJS, with a Javascript something like this: