SamiKoen commited on
Commit
9a25e3b
·
verified ·
1 Parent(s): 920205d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -167,11 +167,12 @@ if root is not None:
167
  price_rebate_money_order = ""
168
 
169
  # Ürün bilgilerini al - None kontrolü ekle
170
- product_url = item.find('productDetailUrl').text if item.find('productDetailUrl') is not None else ""
 
171
  product_info = [stock_amount, price, product_url, price_eft, price_rebate, price_rebate_money_order]
172
 
173
  # Resim URL'si ekle (varsa) - Güvenli versiyon
174
- image_elem = item.find('imageHighResUrl')
175
  if image_elem is not None and image_elem.text:
176
  product_info.append(image_elem.text)
177
  else:
 
167
  price_rebate_money_order = ""
168
 
169
  # Ürün bilgilerini al - None kontrolü ekle
170
+ product_url_elem = item.find('productLink')
171
+ product_url = product_url_elem.text if product_url_elem is not None and product_url_elem.text else ""
172
  product_info = [stock_amount, price, product_url, price_eft, price_rebate, price_rebate_money_order]
173
 
174
  # Resim URL'si ekle (varsa) - Güvenli versiyon
175
+ image_elem = item.find('picture1Path')
176
  if image_elem is not None and image_elem.text:
177
  product_info.append(image_elem.text)
178
  else: