mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2025-12-16 03:51:02 +01:00
* fix expire data calculation, fixes #162 * add shipping price, if any. fixes #164 * add gh-dash config * add logo source * fix #163: used invalid key for type attribute, fixed switch
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
#
|
|
# kleingebaeck sample configuration file.
|
|
# put this to ~/.kleingebaeck.
|
|
#
|
|
# Comments start with the '#' character.
|
|
|
|
# kleinanzeigen.de user-id. must be an unquoted number
|
|
user = 00000000
|
|
|
|
# enable verbose output (same as -v), may be true or false.
|
|
# other values: notice or debug
|
|
loglevel = "verbose"
|
|
|
|
# directory where to store downloaded ads. kleingebaeck will try to
|
|
# create it. must be a quoted string. You can also include a couple of
|
|
# template variables, e.g:
|
|
# outdir = "test-{{.Year}}-{{.Month}}-{{.Day}}"
|
|
outdir = "test"
|
|
|
|
# template for stored adlistings.
|
|
template="""
|
|
Title: {{.Title}}
|
|
Price: {{.Price}}
|
|
Shipping: {{.Shipping}}
|
|
Id: {{.Id}}
|
|
Category: {{.Category}}
|
|
Condition: {{.Condition}}
|
|
Type: {{.Type}}
|
|
Created: {{.Created}}
|
|
|
|
{{.Text}}
|
|
"""
|
|
|
|
# Ads may contain more attributes than just the Condition. To print
|
|
# all attributes, loop over all of them:
|
|
|
|
template="""
|
|
Title: {{.Title}}
|
|
Price: {{.Price}}
|
|
Id: {{.Id}}
|
|
Category: {{.Category}}
|
|
{{ range $key,$val := .Attributes }}{{ $key }}: {{ $val }}
|
|
{{ end }}
|
|
Type: {{.Type}}
|
|
Created: {{.Created}}
|
|
|
|
{{.Text}}
|
|
"""
|