interface31
Goto Top

ICECAT Catalog mit Woocommerce integration

Hi,

habe die Plattform/Dienst https://icecat.biz/ und würde diese gerne in Woocommerce integrieren.
Hat damit jemand Erfahrung?
Aktueller Stand ist halt das ich csv files mit Informationen zum Produkt in Woocommerce update.
Mehr schlecht als recht, da ich zu wenig Grundlage zu den Produkten habe.
Im Grunde nur Hersteller und Modell
Jetzt wären halt noch weitere Infos und Bilder wünschenswert.
Kann das system dies erfüllen oder gibt es noch alternativen?

cu

Content-Key: 6604158559

Url: https://administrator.de/contentid/6604158559

Printed on: April 28, 2024 at 05:04 o'clock

Member: interface31
interface31 Apr 02, 2023 at 14:50:23 (UTC)
Goto Top
Habe versucht dies über Python zu realisieren aber buggy
Jemand besser?

import requests
import pandas as pd

# read in Excel file containing product names
df = pd.read_excel('product_names.xlsx')  

# iterate over each product name and make API requests
ean_list = []
for name in df['Product Name']:  
    url = 'https://api.upcitemdb.com/prod/trial/search'  
    params = {'q': name}  
    response = requests.get(url, params=params).json()
    try:
        ean = response['items'][0]['ean']  
    except:
        ean = ''  
    ean_list.append(ean)

# add EAN codes to new column in Excel file
df['EAN Code'] = ean_list  
df.to_excel('product_names_with_ean.xlsx', index=False)