support special category attributes (#33)

This commit is contained in:
Oleg Loewen
2022-03-07 15:49:12 +01:00
committed by GitHub
parent c62528f577
commit 361b88c843
3 changed files with 11 additions and 0 deletions

View File

@@ -273,6 +273,9 @@ category: Notebooks
price:
price_type: # one of: FIXED, NEGOTIABLE, GIVE_AWAY
special_attributes:
haus_mieten.zimmer_d: 5 # Zimmer
shipping_type: # one of: PICKUP, SHIPPING, NOT_APPLICABLE
# list of wildcard patterns to select images

View File

@@ -404,6 +404,13 @@ class KleinanzeigenBot(SeleniumMixin):
if ad_cfg["price_type"] != "GIVE_AWAY":
self.web_input(By.ID, "pstad-price", ad_cfg["price"])
#############################
# set special properties of category
#############################
if ad_cfg["special_attributes"]:
for special_property_key, special_property_value in ad_cfg["special_attributes"]:
self.web_input(By.ID, special_property_key, special_property_value)
#############################
# set description
#############################

View File

@@ -3,6 +3,7 @@ type:
title:
description:
category:
special_attributes: {}
price:
price_type:
shipping_type: