Added URL scraping function