make scraper more generic