build: use yamlfix for yaml formatting

This commit is contained in:
sebthom
2025-04-28 01:35:36 +02:00
parent bda0acf943
commit 3e8072973a
6 changed files with 287 additions and 35 deletions

View File

@@ -1,21 +1,23 @@
active: # one of: true, false
type: # one of: OFFER, WANTED
active: # one of: true, false
type: # one of: OFFER, WANTED
title:
description:
category:
special_attributes: {}
price:
price_type: # one of: FIXED, NEGOTIABLE, GIVE_AWAY, NOT_APPLICABLE
shipping_type: # one of: PICKUP, SHIPPING, NOT_APPLICABLE
price_type: # one of: FIXED, NEGOTIABLE, GIVE_AWAY, NOT_APPLICABLE
shipping_type: # one of: PICKUP, SHIPPING, NOT_APPLICABLE
shipping_costs:
shipping_options: [] # see README.md for more information
sell_directly: # requires shipping_options to take effect
shipping_options: [] # see README.md for more information
sell_directly: # requires shipping_options to take effect
images: []
contact:
name:
street:
zipcode:
phone:
republication_interval:
id:
created_on:

View File

@@ -117,8 +117,7 @@ Videospiele_XBox: 161/227/xbox
Videospiele_Wii: 161/227/wii
Videospiele_PC: 161/227/pc_spiele
#Auto, Rad & Boot
# Auto, Rad & Boot
Autoreifen: 210/223/reifen_felgen
# Freizeit, Hobby & Nachbarschaft
@@ -158,7 +157,7 @@ Herren_Stiefeletten: 153/158/stiefel
Herren_Outdoorschuhe: 153/158/outdoor_wanderschuhe
Herren_Wanderschuhe: 153/158/outdoor_wanderschuhe
#Familie, Kind & Baby
# Familie, Kind & Baby
Familie_Kind_Baby: 17/18
Altenpflege: 17/236
Babysitter: 17/237

View File

@@ -4,19 +4,19 @@ ad_files:
# default values for ads, can be overwritten in each ad configuration file
ad_defaults:
active: true
type: OFFER # one of: OFFER, WANTED
description_prefix: "" # prefix for the ad description
description_suffix: "" # suffix for the ad description
type: OFFER # one of: OFFER, WANTED
description_prefix: "" # prefix for the ad description
description_suffix: "" # suffix for the ad description
price_type: NEGOTIABLE # one of: FIXED, NEGOTIABLE, GIVE_AWAY, NOT_APPLICABLE
shipping_type: SHIPPING # one of: PICKUP, SHIPPING, NOT_APPLICABLE
sell_directly: false # requires shipping_options to take effect
price_type: NEGOTIABLE # one of: FIXED, NEGOTIABLE, GIVE_AWAY, NOT_APPLICABLE
shipping_type: SHIPPING # one of: PICKUP, SHIPPING, NOT_APPLICABLE
sell_directly: false # requires shipping_options to take effect
contact:
name: ""
street: ""
zipcode:
phone: "" # IMPORTANT: surround phone number with quotes to prevent removal of leading zeros
republication_interval: 7 # every X days ads should be re-published
phone: "" # IMPORTANT: surround phone number with quotes to prevent removal of leading zeros
republication_interval: 7 # every X days ads should be re-published
# additional name to category ID mappings, see default list at
# https://github.com/Second-Hand-Friends/kleinanzeigen-bot/blob/main/src/kleinanzeigen_bot/resources/categories.yaml
@@ -27,17 +27,17 @@ ad_defaults:
categories: {}
publishing:
delete_old_ads: "AFTER_PUBLISH" # one of: AFTER_PUBLISH, BEFORE_PUBLISH, NEVER
delete_old_ads_by_title: true # only works if delete_old_ads is set to BEFORE_PUBLISH
delete_old_ads: "AFTER_PUBLISH" # one of: AFTER_PUBLISH, BEFORE_PUBLISH, NEVER
delete_old_ads_by_title: true # only works if delete_old_ads is set to BEFORE_PUBLISH
# browser configuration
browser:
# https://peter.sh/experiments/chromium-command-line-switches/
arguments: []
binary_location: # path to custom browser executable, if not specified will be looked up on PATH
extensions: [] # a list of .crx extension files to be loaded
binary_location: # path to custom browser executable, if not specified will be looked up on PATH
extensions: [] # a list of .crx extension files to be loaded
use_private_window: true
user_data_dir: "" # see https://github.com/chromium/chromium/blob/main/docs/user_data_dir.md
user_data_dir: "" # see https://github.com/chromium/chromium/blob/main/docs/user_data_dir.md
profile_name: ""
# login credentials

View File

@@ -186,14 +186,12 @@ kleinanzeigen_bot/extract.py:
_extract_contact_from_ad_page:
"No street given in the contact.": "Keine Straße in den Kontaktdaten angegeben."
#################################################
kleinanzeigen_bot/utils/i18n.py:
#################################################
_detect_locale:
"Error detecting language on Windows": "Fehler bei der Spracherkennung unter Windows"
#################################################
kleinanzeigen_bot/utils/error_handlers.py:
#################################################
@@ -249,4 +247,4 @@ kleinanzeigen_bot/utils/web_scraping_mixin.py:
" -> Opening [%s]...": " -> Öffne [%s]..."
web_request:
" -> HTTP %s [%s]...": " -> HTTP %s [%s]..."
" -> HTTP %s [%s]...": " -> HTTP %s [%s]..."