refactor main_scraper