Refactor main scraping script into one with subroutines