Advertisement
_fedosssss_

Qr code generator

Oct 13th, 2022
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | Software | 0 0
  1. import qrcode
  2.  
  3. website_link = 'https://www.python.org/downloads/'
  4. qr = qrcode.QRCode(version = 1, box_size = 5, border = 5)
  5. qr.add_data(website_link)
  6. qr.make()
  7.  
  8. img = qr.make_image(fill_color = 'black', back_color = 'white')
  9. img.save('qrcode_picture.png')
Tags: pyhton
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement