QR CODE GENERATOR IN PYTHON
- waclaw_koscielniak
- Sep 29
- 1 min read
import qrcode
from PIL import Image
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
qr.add_data('https://www.facebook.com/')
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("QR_Code.png")
img = Image.open('QR_Code.png')
img.show()
print(f"Image size: {img.size}")
print(f"Image format: {img.format}")

You can generate your own QR Code with Python.