Breaking sctore scrape into functions