import qrcode qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L) qr.add_data("INSERT YOUR LINK HERE") qr.make(fit=True) img = qr.make_image(fill_color="black", back_color="white") img.save("qrcode.png")