Refactor scrape, and make it work preliminarily