Skip to content

Instantly share code, notes, and snippets.

@quarkness
Created June 19, 2012 21:18
Show Gist options
  • Save quarkness/2956594 to your computer and use it in GitHub Desktop.
Save quarkness/2956594 to your computer and use it in GitHub Desktop.
batch qr
import pyqrcode
import csv
stickers = csv.reader(open('/Users/ivo/Downloads/stickers.csv', 'rb'), delimiter=',', quotechar='|')
for row in stickers:
name = row[0]
uri = row[5]
try:
qr_image = pyqrcode.MakeQRImage(uri)
qr_image.save(name + '.png')
except IndexError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment