Upload app.py
Browse files
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 |
-
|
|
|
|
| 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('
|
| 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:
|