python-scripts/scripts/QR_gen_sage/qr.py
Olayinka Adeyemi cf9934f223 Chore: Added QR
2022-10-10 22:32:42 +01:00

14 lines
306 B
Python

import pyqrcode
from pyqrcode import QRCode
# @author https://github.com/theadeyemiolayinka
s = input('Enter your URL:\n>')
f = input('Enter preferred file name (without extension):\n>')
# Generate QR code
url = pyqrcode.create(s)
# Create and save the png file
url.svg(f+'.png', scale = 8)