tucker777/QSTK — pull request #2 by ipl31 (2012-11-11 21:26:29+00:00)
Title: Yahoo data script improvements

Hello, I am taking the coursera class and made some improvements to the yahoo data script:
1. removed unused sys import
2. fixed typo in comment, line 20 missing "not"
3. removed use of symbol_name, it was duplicating the data in $symbol for no obvious reason
4. moved the URL into its own variable so you can optionally add a "print url" if debugging
5. Not incrementing the miss url counter when catching urllib2.HTTPError
6. Change all print/log messages to use ".format()" instead of string concatenation, generally more robust.
7. Improve the parsing of the symbols.txt file. In my experience (on OSX) it did not handle whitespace after symbol names (they got URL encoded as "+") and it did not handle blank like at the end of the file. It handles those situations now.