scraper code mostly complete