This project generates a QR code for a given URL and saves it as an image file. The QR code can be scanned to redirect users to the specified URL.
- The script generates a QR code for the provided URL.
- The QR code is saved as an image file named
qr-code.webp
in the project directory.
After running the script, you can find the QR code image in the project directory. Below is an example of the generated QR code:
- Install the required dependencies:
pip install qrcode[pil]
- Run the script:
python qr-scanner.py
- Open the
qr-code.webp
file to view the generated QR code.