Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created April 16, 2015 12:25
Show Gist options
  • Save minthemiddle/e03edea1e69cbb8c7f42 to your computer and use it in GitHub Desktop.
Save minthemiddle/e03edea1e69cbb8c7f42 to your computer and use it in GitHub Desktop.
Create QR codes from csv URL list using qrencode CLI
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