Skip to content

Commit

Permalink
now link is from user input
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkrock04 committed Nov 28, 2024
1 parent 78e9a42 commit 8a8ff4a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions QR.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import qrcode



def generate_qr_code(data, filename):
qr = qrcode.QRCode(
version=1,
Expand All @@ -16,7 +14,7 @@ def generate_qr_code(data, filename):
img.save(filename)


data = "https://www.youtube.com/"
filename = "SBI.png"
data = input("'Enter anything to generate QR :")
filename = "QRcode.png"
generate_qr_code(data, filename)
print(f"QR code generated and saved as {filename}")

0 comments on commit 8a8ff4a

Please sign in to comment.