Wrap scraping into funciton so I can do more with this script other than scrape