Skip to content

Commit

Permalink
Merge pull request #290 from tusharpamnani/tushar
Browse files Browse the repository at this point in the history
QR Code Generator
  • Loading branch information
Swpn0neel authored Oct 14, 2023
2 parents 902a1a0 + 0c7f400 commit 714fbdb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions QR-Code-Generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import qrcode

profile = input("Enter your profile: ")

data = 'https://www.linkedin.com/in/' + profile

qr = qrcode.QRCode(version=1, box_size=10, border=5)
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image()

destination = input("Enter the destination directory to save the QR code image: ")

filename = input("Enter the filename for the QR code image (including the extension, like, myqrcode.png): ")

filepath = destination + '/' + filename

0 comments on commit 714fbdb

Please sign in to comment.