Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit b91415e

Browse files
Merge pull request #149 from ShivSt/master
qr code generator
2 parents ef33386 + 208e493 commit b91415e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import qrcode
2+
3+
input_URL = "https://www.google.com/"
4+
5+
qr = qrcode.QRCode(
6+
version=1,
7+
error_correction=qrcode.constants.ERROR_CORRECT_L,
8+
box_size=15,
9+
border=4,
10+
)
11+
12+
qr.add_data(input_URL)
13+
qr.make(fit=True)
14+
15+
img = qr.make_image(fill_color="red", back_color="white")
16+
img.save("url_qrcode.png")
17+
18+
print(qr.data_list)
2.31 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /