Created
June 19, 2012 21:18
-
-
Save quarkness/2956594 to your computer and use it in GitHub Desktop.
batch qr
This file contains 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
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