Pull group scraping logic out of if __name__ block and clean up.
Merge pull request #2 from chirs/master

Pull scrape code out of if __name__ == __Main__