mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-03-13 17:19:50 +00:00
commit
d172e657e4
10
scripts/QR_gen_sage/README.md
Normal file
10
scripts/QR_gen_sage/README.md
Normal 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
13
scripts/QR_gen_sage/qr.py
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user