Replaced file download and read with HTML::TreeBuilder to extract values