Skip to content

Instantly share code, notes, and snippets.

@sengstacken
Created October 7, 2021 13:42
Show Gist options
  • Save sengstacken/8d6f54b65f2dd0ae4233166a4582ecce to your computer and use it in GitHub Desktop.
Save sengstacken/8d6f54b65f2dd0ae4233166a4582ecce to your computer and use it in GitHub Desktop.
import qrcode
qr = qrcode.QRCode(version=3, box_size=15, border=15) #box_size is QR dimension and border is thickness
data = "https:~/~/www.amazon.com"
qr.add_data(data)
image = qr.make_image(fill='black', back_color='white')
image.save("amazon.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment