Scraping font-size from HTML and CSS
You can use selenium with firefox or phantomjs if you're on a headless machine, the browser will render the page, then you can locate the element and get it's attributes.
On python the method to get attributes is self explanatory, Element_obj.get_attribute('attribute_name')
I am trying to scrape the font-size of each section of text in an HTML page. I have spent the past few days trying to do it, but I feel like I am trying to re-invent the wheel. I have looked at python libraries like cssutils, beautiful-soup, but haven't had much luck sadly. I have made my own html parser that finds the font size inside the html only, but it doesn't look at stylesheets which is really important. Any tips to get me headed in the right direction?