Abstract scraper function definition