QR Codes Generator for Any url

QR Codes Generator for Any url

How to generate a QR codes for any website

firstly before we move in to the topic I will like to let you know exactly what QR codes means.

What is QR codes??

A QR code is a type of matrix bar-code invented in 1994 by the Japanese automotive company Denso Wave. A bar-code is a machine-readable optical label that contains information about the item to which it is attached. QR stands for "Quick Response." While they may look simple, QR codes are capable of storing lots of data. But no matter how much they contain, when scanned, the QR code should allow the user to access information instantly – hence why it’s called a Quick Response code.

Now let's go into the topic.

well, it is damn easy to do this with python or pycharm as we can make use of library. to do this you need to download a library called pyqrcode. After downloading the library then try to copy the following codes and run it.

# to generate QRCODES
import pyqrcode 
from pyqrcode import QRCode   
# String which represent your website link 
yourweb = "https://maxwizard.hashnode.dev/email-slicer-app-using-python-with-source-codes"

# Generate QR code 
url = pyqrcode.create(yourweb)
# Create and save the png file naming "myblog.png" 
url.svg("myblog.svg", scale = 9)

Explanation: you declare a variable to hold the website link then you use pyqrcode.creat() function to generate the code while svg() is to draw the image. here I'm using myblog to save it. you can use whatever name you like too. Note that when your codes run you won't see anything but go to the same directory of your current file and search for the image. e.g for me I will search for myblog and this is what i get after open myblog.

qrbar.JPG

you can now make use of the qrcode to go straight to the website.

How do I make use of the qrcodes with my phone?? that is not a difficult thing just download qrcode scanner from play store to your phone. install it and open it then scan the picture you see in your folder you will land in to the website. Did you enjoy it?? if you have any question on this feel free to ask. you can also chat me up on 09153036869. I hope you find this helpful. it is still your guy Maxwizard. Enjoy coding!