mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Chore: Added QR
This commit is contained in:
parent
00a7e6ee14
commit
cf9934f223
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…
Reference in New Issue
Block a user