spiderss/config.toml
2020-04-26 20:29:03 +02:00

37 lines
1.4 KiB
TOML

# This defines the base directory for the feeds. Please use an absolute path.
base_directory = '/home/<user>/rss'
# Articles older than max_age (days) will be deleted and not be added.
max_age = 30
# Date and time format as strftime, to be included in the articles.
datetime_format = '%d.%m.%Y %H:%M'
# Postprocessing command of the articles. The article is written to stdin in HTML format and read from stdout.
postprocessor = 'pandoc -f html -t markdown_strict-raw_html+pipe_tables --reference-links --reference-location=document'
# Fileending for the article files.
fileending = 'md'
# List of regular expression strings. If any of these matches an lowercase article title, the article won't be saved.
# E.g. if you wan't to skip news about RSS explicitly, add '(\W|^)rss(\W|$)'.
filters = []
# Feeds
# The category can be empty (''). The feed fill then be stored in the base_directory.
# The category can also be a path, which will result in subdirectories (e.g. 'technology/hardware').
# The name can be empty, too (''). feeds with the same category will then be stored in the same directory.
# If scrape is set to true, the article content will be fetched from it's link.
# Otherwise the content of the RSS article is used.
[[feed]]
category = 'News'
name = 'Newssite'
url = 'https://example.org/feed'
scrape = false
[[feed]]
category = 'News'
name = 'Newssite 2'
url = 'https://example.org/feed'
scrape = true