Icecat client for Python.
Icecat(username, password, http_url=...)client.openCatalog.getProduct(lang, gtin)client.openCatalog.getProductById(lang, product_id)client.openCatalog.getProductBySKU(lang, brand, sku)client.openCatalog.getProductByXMLdata(xml_data)IcecatProductconvenience methods (getTitle,getImages,getSpecifications, etc.)
pip install python-icecatfrom icecat import Icecat
client = Icecat("your_username", "your_password")
product = client.openCatalog.getProduct("EN", "4948570114344")
print(product.getTitle())
images = product.getImages()
if images:
print(images[0].ThumbImg)Use credentials from args or environment:
export ICECAT_USERNAME="your_username"
export ICECAT_PASSWORD="your_password"Fetch by GTIN:
python main.py --lang EN --output summary gtin 4948570114344Fetch by Icecat product ID:
python main.py --lang EN --output json id 29900045Fetch by vendor + SKU:
python main.py --lang EN sku iiyama X4071UHSU-B1Parse local XML file (no credentials required):
python main.py --output json xml ./product.xmlIcecat(username, password, http_url="data.icecat.biz/xml_s3/xml_server3.cgi")- Field:
openCatalog(OpenCatalogService)
getProduct(lang, gtin) -> IcecatProductgetProductById(lang, product_id) -> IcecatProductgetProductBySKU(lang, brand, sku) -> IcecatProductgetProductByXMLdata(xml_data) -> IcecatProduct
getReturnCode() -> int | NonegetErrorMessage() -> str | NonegetName() -> str | NonegetTitle() -> str | NonegetReleaseDate() -> str | NonegetLongDescription() -> str | NonegetShortDescription() -> str | NonegetProductInfoPDFurl() -> str | NonegetProductManualPDFurl() -> str | NonegetProductUrl() -> str | NonegetSupplier() -> str | NonegetCategory() -> str | NonegetFamily() -> ProductFamily | NonegetID() -> str | NonegetEan() -> str | NonegetImages() -> list[ProductImage]getSpecifications() -> list[ProductSpecification]getMultimediaObjects() -> list[MultimediaObject]getCategoryFeatureGroups() -> list[CategoryFeatureGroup]
ProductFamily(id: str | None, name: str | None)ProductImage(IsMain, HighImg, LowImg, ThumbImg)ProductSpecification(name, presentationValue, value, specId, specGroupId)(all fields can beNone)MultimediaObject(contentType, thumbPic, description, keepAsURL, size, url)CategoryFeatureGroup(id: str | None, name: str | None)