diff --git a/scripts/QR_gen_sage/README.md b/scripts/QR_gen_sage/README.md new file mode 100644 index 0000000..4db9908 --- /dev/null +++ b/scripts/QR_gen_sage/README.md @@ -0,0 +1,10 @@ +## QR code files ADDED #336 + +## QR +Easilly Generate QR Codes for any text or URL + + +## Installation +- Clone the repo +- download the requirements +- run `python qr.py` diff --git a/scripts/QR_gen_sage/qr.py b/scripts/QR_gen_sage/qr.py new file mode 100644 index 0000000..c6b0aaa --- /dev/null +++ b/scripts/QR_gen_sage/qr.py @@ -0,0 +1,13 @@ +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)