How to create your QRCode with Python !!!

avatar
(Edited)

Hello guys this is my 1st post in STEMGeeks community,

and I will show you how to create your own QRCode with Python in 7 lines only!

import qrcode

input_data = " paste here the link from the websit you want to convert into a qrcode "

qr = qrcode.QRCode(version=1, box_size=10, border=5)
qr.add_data(input_data)
qr.make(fit=True)
img = qr.make_image(fill='black', back_color='white')
img.save('qrcode001.png')

and this is my QRCode of my profile from hive.blog

qrcode001.png


Screenshot_93.png


I use the Visual Studio Code for the Python programming language


~FIND ME HERE~

Odysee
Hive.blog
PeakD
Lbry.tv
YouTube
D.tube
Facebook
Instagram
Twitter




0
0
0.000
4 comments
avatar

You need to install qrcode first. I believe that this is the PyPi page for the application:

https://pypi.org/project/qrcode/

0
0
0.000
avatar

applies, I forgot to say at the beginning that we need to execute the following commands to install these two libraries

pip install pillow
pip install qrcode
0
0
0.000