Pull scrape code out of if __name__ == __Main__