Skip to content

Instantly share code, notes, and snippets.

@Gustavoo151
Created February 18, 2021 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gustavoo151/d4309bf7a3420da47f7c47698361fc13 to your computer and use it in GitHub Desktop.
Save Gustavoo151/d4309bf7a3420da47f7c47698361fc13 to your computer and use it in GitHub Desktop.
Criar um Qr code a partir de qualquer link
import pyqrcode
import png
from pyqrcode import QRCode
qrstring = "https://www.youtube.com/" # Lugar do link desejado
url = pyqrcode.create(qrstring)
url.png('C:\local\qr.png', scale=8) # escolher o local do arquivo png com o Qr code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment