Created
February 25, 2024 15:14
-
-
Save MahraibFatima/73c943d26fa6a9ffc07240f593647b26 to your computer and use it in GitHub Desktop.
create QR.png file of given url (if valid)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyqrcode | |
try: | |
link = input("Enter your link: ") | |
qr_code = pyqrcode.create(link) | |
qr_code.png("your_qr_code.png", scale=5) | |
print("QR code generated successfully!") | |
except Exception as e: | |
print("An error occurred:", e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment