二维码转链接
import requests from pyzbar.pyzbar
import decode
from PIL import Image
from io import BytesIO
def get_url(url):
res=requests.get(url=url).content
bio = BytesIO(res)
img = Image.open(bio)
barcodes = decode(img) bio.close()
for barcode in barcodes:
url = barcode.data.decode("utf-8")
return url
aa=get_url('http://phone.web215.sonhoo.com/nologin/callPhoneQRCode/0?gsid=2581469&infoid=0&commFrom=1')
print(aa)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)