updating dependencies and fixing neubaukompass

This commit is contained in:
Christian Kellner
2020-06-22 09:29:32 +02:00
parent bb0695146c
commit d1e3d989b7
3 changed files with 213 additions and 215 deletions

View File

@@ -13,16 +13,16 @@ function applyBlacklist(o) {
const config = {
enabled: null,
url: null,
crawlContainer: '.row article',
crawlContainer: '.nbk-container >div article',
crawlFields: {
id: '@id',
title: 'div.nbk-p-2 > h3 a@title | removeNewline | trim',
link: 'div.nbk-p-2 > h3 > a@href',
address: 'div.nbk-p-2 > p | removeNewline | trim'
address: 'div.nbk-p-2 > p | removeNewline | trim',
},
paginate: '.numbered-pager__bottom .numbered-pager--info li:nth-child(2) a@href',
normalize: normalize,
filter: applyBlacklist
filter: applyBlacklist,
};
exports.init = (sourceConfig, blacklist) => {