Skip to content

Instantly share code, notes, and snippets.

@takuya-andou
Created August 28, 2017 06:19
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 takuya-andou/6cdffe6fd59131b58059c7162a02fd83 to your computer and use it in GitHub Desktop.
Save takuya-andou/6cdffe6fd59131b58059c7162a02fd83 to your computer and use it in GitHub Desktop.
リスト内のURLを一気にQR化するためのスクリプト
# -*- coding: utf-8 -*-
import sys
import qrcode
# QRコードを作る場合
URLarray = ['http://google.com','http://yahoo.co.jp']
for i, URL in enumerate(URLarray):
img = qrcode.make(URL) # ''内の文字をQRコードに変換
img.save('qr_img' + str(i) + '.png') # QRコードに名前をつけて保存
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment