A Python class for EAN and ISBN name lookup and validation using the API on ean-search.org
Project description
EANSearch
A Python class for EAN and ISBN name lookup and validation using the API on https://www.ean-search.org
Compatible with Python 2.x and 3.x
from eansearch import EANSearch
# get a token from https://www.ean-search.org/ean-database-api.html
apiToken = "secret"
ean = "5099750442227" # Thriller
lookup = EANSearch(apiToken)
name = lookup.barcodeLookup(ean)
print(ean, " is ", name)
ok = lookup.verifyChecksum(ean)
print(ean, " is ", "OK" if ok else "Not OK")
eanList = eansearch.productSearch('iPod');
for product in eanList:
print(product["ean"], " is ", product["name"].encode("utf-8"))
eanList = eansearch.barcodePrefixSearch('4007249146');
for product in eanList:
print(product["ean"], " is ", product["name"].encode("utf-8"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eansearch-1.0.5.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for eansearch-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04b7241bc88a147f0c591f8d9094d82c63e2ded3a80c7256d0c455f30e44e66 |
|
MD5 | 7448f8326c6bbd1d6b78fe7f3d58fff9 |
|
BLAKE2b-256 | 8b2dddb2e2430dde84d0aa6eb477f4a87456deb12d381bc7eb4022652f92a1d0 |