qrcodepy.md
· 338 B · Markdown
Raw
`pip install pyqrcode`
How to create a QR Code with Python:
```python
import pyqrcode
from pyqrcode import QRCode
# String (URL) to make into QR code
s = "https://zipcodewilmington.com"
# Generate QR code
url = pyqrcode.create(s)
# Create and save the SVG file naming "zcwqrcode.svg"
url.svg("zcwqrcode.svg", scale = 8)
```
pip install pyqrcode
How to create a QR Code with Python:
import pyqrcode
from pyqrcode import QRCode
# String (URL) to make into QR code
s = "https://zipcodewilmington.com"
# Generate QR code
url = pyqrcode.create(s)
# Create and save the SVG file naming "zcwqrcode.svg"
url.svg("zcwqrcode.svg", scale = 8)