mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 18:41:50 +01:00
@@ -331,7 +331,7 @@ class AdExtractor(WebScrapingMixin):
|
|||||||
"""
|
"""
|
||||||
ship_type, ship_costs, shipping_options = 'NOT_APPLICABLE', None, None
|
ship_type, ship_costs, shipping_options = 'NOT_APPLICABLE', None, None
|
||||||
try:
|
try:
|
||||||
shipping_text = await self.web_text(By.ID, 'boxedarticle--details--shipping')
|
shipping_text = await self.web_text(By.CLASS_NAME, 'boxedarticle--details--shipping')
|
||||||
# e.g. '+ Versand ab 5,49 €' OR 'Nur Abholung'
|
# e.g. '+ Versand ab 5,49 €' OR 'Nur Abholung'
|
||||||
if shipping_text == 'Nur Abholung':
|
if shipping_text == 'Nur Abholung':
|
||||||
ship_type = 'PICKUP'
|
ship_type = 'PICKUP'
|
||||||
@@ -350,9 +350,9 @@ class AdExtractor(WebScrapingMixin):
|
|||||||
"Hermes_Päckchen": "4,50",
|
"Hermes_Päckchen": "4,50",
|
||||||
"Hermes_S": "4,95",
|
"Hermes_S": "4,95",
|
||||||
"DHL_5": "6,99",
|
"DHL_5": "6,99",
|
||||||
"Hermes_M": "5,95",
|
"Hermes_M": "6,75",
|
||||||
"DHL_10": "9,49",
|
"DHL_10": "10,49",
|
||||||
"DHL_31,5": "16,49",
|
"DHL_31,5": "19,99",
|
||||||
"Hermes_L": "10,95",
|
"Hermes_L": "10,95",
|
||||||
}
|
}
|
||||||
for shipping_option, shipping_price in shipping_option_mapping.items():
|
for shipping_option, shipping_price in shipping_option_mapping.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user