Turn the scrape into a function, get rid of the emtpy <th> tags