Python
QR Code Generator
Another simple project. it uses the qrcode library in Python to create a QR code. You can enter a URL, which will automatically take you to that webpage, or text, which will search the text you enter. A .png image file is saved to your computer of the QR code that is generated.
It also uses the Pillow library to display this image in a window.
import qrcode from PIL import Image url = "www.dingbotcode.com" # Replace with the desired URL fileName = "qr_code.png" #Rename the name of the saved QR Code file qr = qrcode.make(url) qr.save(fileName) # Save the QR code image to a file print(f"QR code saved as {fileName}") # Open and display the QR code in a box img = Image.open(fileName) img.show() # This opens the QR code image in the default image viewer