Convert html to CSV file