mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
use venv
This commit is contained in:
0
src/kleinanzeigen_bot/resources/__init__.py
Normal file
0
src/kleinanzeigen_bot/resources/__init__.py
Normal file
22
src/kleinanzeigen_bot/resources/ad_fields.yaml
Normal file
22
src/kleinanzeigen_bot/resources/ad_fields.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
shipping_costs:
|
||||
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:
|
||||
updated_on:
|
||||
198
src/kleinanzeigen_bot/resources/categories.yaml
Normal file
198
src/kleinanzeigen_bot/resources/categories.yaml
Normal file
@@ -0,0 +1,198 @@
|
||||
# Elektronik
|
||||
Elektronik: 161/168
|
||||
|
||||
## Audio & Hifi
|
||||
Audio_und_Hifi: 161/172/sonstiges
|
||||
|
||||
CD_Player: 161/172/cd_player
|
||||
Kopfhörer: 161/172/lautsprecher_kopfhoerer
|
||||
Lautsprecher: 161/172/lautsprecher_kopfhoerer
|
||||
MP3_Player: 161/172/mp3_player
|
||||
Radio: 161/172/radio_receiver
|
||||
Reciver: 161/172/radio_receiver
|
||||
Stereoanlagen: 161/172/stereoanlagen
|
||||
|
||||
## Dienstleistungen Elektronik
|
||||
Dienstleistungen_Elektronik: 161/226
|
||||
|
||||
## Foto
|
||||
Foto: 161/245/other
|
||||
|
||||
Kameras: 161/245/camera
|
||||
Objektive: 161/245/lens
|
||||
Foto_Zubehör: 161/245/equipment
|
||||
Kamera_Equipment: 161/245/camera_and_equipment
|
||||
|
||||
## Handy & Telefon
|
||||
Handys: 161/173/sonstige
|
||||
|
||||
Handy_Apple: 161/173/apple
|
||||
Handy_HTC: 161/173/htc_handy
|
||||
Handy_LG: 161/173/lg_handy
|
||||
Handy_Motorola: 161/173/motorola_handy
|
||||
Handy_Nokia: 161/173/nokia_handy
|
||||
Handy_Samsung: 161/173/samsung_handy
|
||||
Handy_Siemens: 161/173/siemens_handy
|
||||
Handy_Sony: 161/173/sony_handy
|
||||
Faxgeräte: 161/173/faxgeraete
|
||||
Telefone: 161/173/telefone
|
||||
|
||||
## Haushaltsgeräte
|
||||
Haushaltsgeräte: 161/176/sonstige
|
||||
|
||||
Haushaltkleingeräte: 161/176/haushaltskleingeraete
|
||||
Herde: 161/176/herde_backoefen
|
||||
Backöfen: 161/176/herde_backoefen
|
||||
Kaffemaschinen: 161/176/kaffee_espressomaschinen
|
||||
Espressomaschinen: 161/176/kaffee_espressomaschinen
|
||||
Kühlschränke: 161/176/kuehlschraenke_gefriergeraete
|
||||
Gefriergeräte: 161/176/kuehlschraenke_gefriergeraete
|
||||
Spülmaschinen: 161/176/spuelmaschinen
|
||||
Staubsauger: 161/176/staubsauger
|
||||
Waschmaschinen: 161/176/waschmaschinen_trockner
|
||||
Trockner: 161/176/waschmaschinen_trockner
|
||||
|
||||
## Konsolen
|
||||
Konsolen: 161/279/weitere
|
||||
|
||||
Pocket_Konsolen: 161/279/dsi_psp
|
||||
Playstation: 161/279/playstation
|
||||
XBox: 161/279/xbox
|
||||
Wii: 161/279/wii
|
||||
|
||||
## Notebooks
|
||||
Notebooks: 161/278
|
||||
|
||||
## PCs
|
||||
PCs: 161/228
|
||||
|
||||
## PC-Zubehör & Software
|
||||
PC-Zubehör: 161/225/sonstiges
|
||||
|
||||
Drucker: 161/225/drucker_scanner
|
||||
Scanner: 161/225/drucker_scanner
|
||||
Festplatten: 161/225/festplatten_laufwerke
|
||||
Laufwerke: 161/225/festplatten_laufwerke
|
||||
Gehäuse: 161/225/gehaeuse
|
||||
Grafikkarten: 161/225/grafikkarten
|
||||
Kabel: 161/225/kabel_adapter
|
||||
Adapter: 161/225/kabel_adapter
|
||||
Mainboards: 161/225/mainboards
|
||||
Monitore: 161/225/monitore
|
||||
Multimedia: 161/225/multimedia
|
||||
Netzwerk: 161/225/netzwerk_modem
|
||||
CPUs: 161/225/prozessor_cpu
|
||||
Prozessoren: 161/225/prozessor_cpu
|
||||
Speicher: 161/225/speicher
|
||||
Software: 161/225/software
|
||||
Mäuse: 161/225/tastatur_maus
|
||||
Tastaturen: 161/225/tastatur_maus
|
||||
|
||||
## Tablets & Reader
|
||||
Tablets_Reader: 161/285/weitere
|
||||
|
||||
iPad: 161/285/ipad
|
||||
Kindle: 161/285/kindle
|
||||
Tablets_Samsung: 161/285/samsung_tablets
|
||||
|
||||
## TV & Video
|
||||
TV_Video: 161/175/weitere
|
||||
|
||||
DVD-Player: 161/175/dvdplayer_recorder
|
||||
Recorder: 161/175/dvdplayer_recorder
|
||||
Fernseher: 161/175/fernseher
|
||||
Reciever: 161/175/tv_receiver
|
||||
|
||||
## Videospiele
|
||||
Videospiele: 161/227/sonstige
|
||||
|
||||
Videospiele_DS: 161/227/dsi_psp
|
||||
Videospiele_PSP: 161/227/dsi_psp
|
||||
Videospiele_Nintendo: 161/227/nintendo
|
||||
Videospiele_Playstation: 161/227/playstation
|
||||
Videospiele_XBox: 161/227/xbox
|
||||
Videospiele_Wii: 161/227/wii
|
||||
Videospiele_PC: 161/227/pc_spiele
|
||||
|
||||
|
||||
#Auto, Rad & Boot
|
||||
Autoreifen: 210/223/reifen_felgen
|
||||
|
||||
# Freizeit, Hobby & Nachbarschaft
|
||||
Sammeln: 185/234/sonstige
|
||||
|
||||
# Mode & Beauty
|
||||
Beauty: 153/224/sonstiges
|
||||
Gesundheit: 153/224/gesundheit
|
||||
Mode: 153/155
|
||||
|
||||
# Mode & Beauty > Damenschuhe
|
||||
Damenschuhe: 153/159/sonstiges
|
||||
Damen_Ballerinas: 153/159/ballerinas
|
||||
Damen_Halbschuhe: 153/159/halb_schnuerschuhe
|
||||
Damen_Hausschuhe: 153/159/hausschuhe
|
||||
Damen_High_Heels: 153/159/pumps
|
||||
Damen_Pumps: 153/159/pumps
|
||||
Damen_Sandalen: 153/159/sandalen
|
||||
Damen_Schnürschuhe: 153/159/halb_schnuerschuhe
|
||||
Damen_Sportschuche: 153/159/sneaker_sportschuhe
|
||||
Damen_Sneaker: 153/159/sneaker_sportschuhe
|
||||
Damen_Stiefel: 153/159/stiefel
|
||||
Damen_Stiefeletten: 153/159/stiefel
|
||||
Damen_Outdoorschuhe: 153/159/outdoor_wanderschuhe
|
||||
Damen_Wanderschuhe: 153/159/outdoor_wanderschuhe
|
||||
|
||||
# Mode & Beauty > Herrenschuhe
|
||||
Herrenschuhe: 153/158/sonstiges
|
||||
Herren_Halbschuhe: 153/158/halb_schnuerschuhe
|
||||
Herren_Hausschuhe: 153/158/hausschuhe
|
||||
Herren_Sandalen: 153/158/sandalen
|
||||
Herren_Schnürschuhe: 153/158/halb_schnuerschuhe
|
||||
Herren_Sportschuche: 153/158/sneaker_sportschuhe
|
||||
Herren_Sneaker: 153/158/sneaker_sportschuhe
|
||||
Herren_Stiefel: 153/158/stiefel
|
||||
Herren_Stiefeletten: 153/158/stiefel
|
||||
Herren_Outdoorschuhe: 153/158/outdoor_wanderschuhe
|
||||
Herren_Wanderschuhe: 153/158/outdoor_wanderschuhe
|
||||
|
||||
#Familie, Kind & Baby
|
||||
Familie_Kind_Baby: 17/18
|
||||
Altenpflege: 17/236
|
||||
Babysitter: 17/237
|
||||
Buggys: 17/25
|
||||
Babyschalen: 17/21
|
||||
Baby-Ausstattung: 17/258
|
||||
Kinderbetreuung: 17/237
|
||||
Kindersitze: 17/21
|
||||
Kinderwagen: 17/25
|
||||
|
||||
# Familie, Kind & Baby > Spielzeug
|
||||
Spielzeug: 17/23/sonstiges
|
||||
Actionfiguren: 17/23/actionfiguren
|
||||
Babyspielzeug: 17/23/babyspielzeug
|
||||
Barbie: 17/23/barbie
|
||||
Dreirad: 17/23/dreirad
|
||||
Gesellschaftsspiele: 17/23/gesellschaftsspiele
|
||||
Holzspielzeug: 17/23/holzspielzeug
|
||||
Duplo: 17/23/lego_duplo
|
||||
LEGO: 17/23/lego_duplo
|
||||
Lernspielzeug: 17/23/lernspielzeug
|
||||
Playmobil: 17/23/playmobil
|
||||
Puppen: 17/23/puppen
|
||||
Spielzeugautos: 17/23/spielzeug_autos
|
||||
Spielzeug_draussen: 17/23/spielzeug_draussen
|
||||
Stofftiere: 17/23/stofftiere
|
||||
|
||||
# Haus & Garten > Wohnzimmer
|
||||
Wohnzimmer_Regale: 80/88/regale
|
||||
Wohnzimmer_Schraenke: 80/88/schraenke
|
||||
Wohnzimmer_Sitzmoebel: 80/88/sitzmoebel
|
||||
Wohnzimmer_Sofas_Sitzgarnituren: 80/88/sofas_sitzgarnituren
|
||||
Wohnzimmer_Tische: 80/88/tische
|
||||
Wohnzimmer_TV_Moebel: 80/88/tv_moebel
|
||||
Wohnzimmer_Sonstiges: 80/88/sonstiges
|
||||
|
||||
# Verschenken & Tauschen
|
||||
Tauschen: 272/273
|
||||
Verleihen: 272/274
|
||||
Verschenken: 272/192
|
||||
45
src/kleinanzeigen_bot/resources/config_defaults.yaml
Normal file
45
src/kleinanzeigen_bot/resources/config_defaults.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
ad_files:
|
||||
- "./**/ad_*.{json,yml,yaml}"
|
||||
|
||||
# default values for ads, can be overwritten in each ad configuration file
|
||||
ad_defaults:
|
||||
active: true
|
||||
type: OFFER # one of: OFFER, WANTED
|
||||
description:
|
||||
prefix: ""
|
||||
suffix: ""
|
||||
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
|
||||
|
||||
# additional name to category ID mappings, see default list at
|
||||
# https://github.com/Second-Hand-Friends/kleinanzeigen-bot/blob/main/kleinanzeigen_bot/resources/categories.yaml
|
||||
# Notebooks: 161/278 # Elektronik > Notebooks
|
||||
# Autoteile: 210/223/sonstige_autoteile # Auto, Rad & Boot > Autoteile & Reifen > Weitere Autoteile
|
||||
categories: []
|
||||
|
||||
# browser configuration
|
||||
browser:
|
||||
# https://peter.sh/experiments/chromium-command-line-switches/
|
||||
arguments:
|
||||
# https://stackoverflow.com/a/50725918/5116073
|
||||
- --disable-dev-shm-usage
|
||||
- --no-sandbox
|
||||
# --headless
|
||||
# --start-maximized
|
||||
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
|
||||
profile_name: ""
|
||||
|
||||
# login credentials
|
||||
login:
|
||||
username: ""
|
||||
password: ""
|
||||
Reference in New Issue
Block a user