Skip to content

Commit 51e82a6

Browse files
QR generator using python
1 parent 399b2ea commit 51e82a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

python/QR_code.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pyqrcode
2+
from pyqrcode import QRCode
3+
4+
# String which represent the QR code
5+
s = "https://www.youtube.com/channel/UCeO9hPCfRzqb2yTuAn713Mg"
6+
7+
# Generate QR code
8+
url = pyqrcode.create(s)
9+
10+
# Create and save the png file namin
11+
url.svg("myyoutube.svg",scale=8)

0 commit comments

Comments
 (0)