This project is a simple Python script to generate a QR code for a specified URL. The generated QR code is saved as an image file (str_qr.jpeg).
- Generates a QR code for a given URL
- Customizable QR code color and background
- Saves the QR code as a JPEG image
- Python 3.x
qrcodelibrary
- Clone this repository or download the script.
- Install the required Python package:
pip install qrcode[pil]
Run the script using Python:
python3 main.pyThis will generate a QR code image (str_qr.jpeg) in the project directory for the URL specified in the script.
- To change the URL, edit the
urlvariable inmain.py. - You can also modify the QR code's color and background by changing the
fill_colorandback_colorparameters in the script.
This project is licensed under the MIT License.