Made the scrape logic as a separate module