How to read a CSV file from a URL with Python?
You need to replace open with urllib.urlopen or urllib2.urlopen. e.g. This would output the following The original question is tagged “python-2.x”, but for a Python 3 implementation (which requires only minor changes) see below.