Chore: Added QR

This commit is contained in:
Olayinka Adeyemi 2022-10-10 22:32:42 +01:00
parent 00a7e6ee14
commit cf9934f223
2 changed files with 23 additions and 0 deletions

View File

@ -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`

13
scripts/QR_gen_sage/qr.py Normal file
View File

@ -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)