Replies: 1 comment
|
use def asciiQr(code):
import segno
import io
qrcode = segno.make(code)
out = io.StringIO()
# qrcode.terminal(out=out, border=1, compact=True)
qrcode.terminal(out=out, border=1)
out.seek(0)
result = out.read()
return result
urlCode = ""
print(asciiQr(urlCode))can't find other lib that print qrcode smaller |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I use headless browser and show the qr code in the terminal, the image is too large. Is there a way to customize the size of qr code on the terminal?
I'm using:
creator = Create(session=your_session_name, browser='firefox', headless=True, catchQR=catchQR, logQR=True, qr='terminal')where
catchQRcomes from https://github.com/3mora2/WPP_Whatsapp/blob/main/examples/get_qrcode.pyAll reactions