Created
April 16, 2015 12:25
-
-
Save minthemiddle/e03edea1e69cbb8c7f42 to your computer and use it in GitHub Desktop.
Create QR codes from csv URL list using qrencode CLI
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
from subprocess import call | |
import csv | |
with open('urls.csv', 'r') as csvfile: | |
infile = csv.reader(csvfile) | |
for row in infile: | |
quality = '-s 300' | |
fileout = '-o '+row[0]+'.png' | |
filein = row[1] | |
call(["qrencode",fileout,quality,filein]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment