使用ean-search.org上的api查找和验证ean和isbn名称的python类
eansearch的Python项目详细描述
#EANSearch
使用https://www.ean-search.org上的API查找和验证EAN和ISBN名称的Python类
=“5099750442227”Thriller
name=lookup.barcodelookup(ean)
print(ean,“is”,name)
ok=lookup.verifychecksum(ean)
print(ean,“is”,“ok”,否则“not ok”)
eanlist=eansearch.productsearch('ipod');
对于eanlist中的产品:
print(产品[“ean”,“is”,产品[“名称”].encode(“utf-8”))
eanlist=eansearch.barcodepirefixsearch('4007249146');
对于eanlist中的产品:
打印(产品[“ean”],“is”,产品[“名称”].encode(“utf-8”))
使用https://www.ean-search.org上的API查找和验证EAN和ISBN名称的Python类
=“5099750442227”Thriller
name=lookup.barcodelookup(ean)
print(ean,“is”,name)
ok=lookup.verifychecksum(ean)
print(ean,“is”,“ok”,否则“not ok”)
eanlist=eansearch.productsearch('ipod');
对于eanlist中的产品:
print(产品[“ean”,“is”,产品[“名称”].encode(“utf-8”))
eanlist=eansearch.barcodepirefixsearch('4007249146');
对于eanlist中的产品:
打印(产品[“ean”],“is”,产品[“名称”].encode(“utf-8”))