Skip to content

Instantly share code, notes, and snippets.

@elie00
Last active October 15, 2021 18:16
Show Gist options
  • Save elie00/21f4d93f35debed5dc709ab8639e3d86 to your computer and use it in GitHub Desktop.
Save elie00/21f4d93f35debed5dc709ab8639e3d86 to your computer and use it in GitHub Desktop.
QR_CodeGenerator
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")
@elie00
Copy link
Author

elie00 commented Oct 15, 2021

Générateur de codes QR à partir d'un lien en Python.

QR's code generator with a link in Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment