Created
August 28, 2017 06:19
-
-
Save takuya-andou/6cdffe6fd59131b58059c7162a02fd83 to your computer and use it in GitHub Desktop.
リスト内のURLを一気に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
# -*- 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