Last active
October 15, 2021 18:16
-
-
Save elie00/21f4d93f35debed5dc709ab8639e3d86 to your computer and use it in GitHub Desktop.
QR_CodeGenerator
This file contains hidden or 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 qrcode | |
from qrcode.constants import ERROR_CORRECT_L | |
qr = qrcode.QRCode( | |
version=5, | |
error_correction=ERROR_CORRECT_L, | |
box_size=9, | |
border=8, | |
) | |
qr.add_data('https://www.youtube.com') | |
qr.make(fit=True) | |
img = qr.make_image(fill_color="black", black_color="white") | |
img.save('qrcode.png') | |
#img = qrcode.make("https://www.youtube.com/") | |
#img.save("youtubeQR.jpg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Générateur de codes QR à partir d'un lien en Python.
QR's code generator with a link in Python.