I'm trying to load a file from my own server into a piece of code. I've done similar things several times elsewhere in the code, but always from external sites in the past. The file is at http://mydomain.com/static/data/somefile.csv - this file works, and if I navigate to it in the browser, it downloads the file. In my app I'm using master_data = open (r'http://mydomain.com/static/data/somefile.csv', 'r'), and getting: Exception Type: IOError
Exception Value: asked 24 Apr '14, 05:39 iamwithnail |
You cannot open a URL with Python's Instead, use
Hope that helps! answered 24 Apr '14, 18:21 seanf |