added previous scraper code