Created
October 30, 2011 20:59
-
-
Save ghickman/1326435 to your computer and use it in GitHub Desktop.
fix broken midwich images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
midwich_image_fix.py | |
Created by Lee Perry on 2011-10-30. | |
Copyright (c) 2011 iCode Solutions Ltd. All rights reserved. | |
""" | |
import sys | |
import csv | |
__author__ = 'Lee Perry' | |
"""Fix image names in Midwich images feed""" | |
with open('image_links.csv', 'r') as f: | |
try: | |
for row in csv.reader(f) | |
print row | |
except csv.Error as e: | |
sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment