Skip to content

Instantly share code, notes, and snippets.

@ghickman
Created October 30, 2011 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghickman/1326435 to your computer and use it in GitHub Desktop.
Save ghickman/1326435 to your computer and use it in GitHub Desktop.
fix broken midwich images
#!/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