mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 15:31:10 +00:00
14 lines
306 B
Python
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)
|