Updated HTML scraping code