Is there a Ruby/Python HTML reflow/layout library?
Both Ruby and Python have a Regex library.  Why not search for things like /width=\"(\d+)px\"/ and /height:(\d+)px/.  Use $1 to find the value in the group.  I'm not a regex expert and I'm doing this from memory, so refer to any of the tutorials on the net for the correct syntax and variable usage, but that's where to start.  Good luck,
bsperlinus
I'm looking for a library in Ruby or Python that would take some HTML and CSS as the input and return data that contains the positions and sizes of the elements. If it helps, I don't need the info for all the elements but just the major divs of the page.