from qr import QR qr = QR() """ with open("file.jpg", "rb") as f : bts = f.read() """ content = qr.read_by_url("https://www.prepressure.com/images/qr-code-no-other-info.jpg") print(content)