mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing ebay kleinanzeigen || fiing neubauKompass
This commit is contained in:
@@ -4,9 +4,7 @@ const utils = require('../utils');
|
||||
|
||||
function normalize(o) {
|
||||
const title = o.title + '| '+o.subTitle;
|
||||
//this is a bit nasty, but we do not have a size, therefor take the availability and set it as size to not modify notifications any furter
|
||||
const size = o.available;
|
||||
return Object.assign(o, { title, size });
|
||||
return Object.assign(o, { title });
|
||||
}
|
||||
|
||||
function applyBlacklist(o) {
|
||||
@@ -17,15 +15,13 @@ const neubauKompass = {
|
||||
name: 'neubauKompass',
|
||||
enabled: config.sources.neubauKompass.enabled,
|
||||
url: config.sources.neubauKompass.url,
|
||||
crawlContainer: '.md__property-list .post-list__item',
|
||||
crawlContainer: '.row article',
|
||||
crawlFields: {
|
||||
id: '@id',
|
||||
price: '.entry__main .entry__data li:nth-child(1) span:nth-child(2) | removeNewline | trim',
|
||||
available: '.entry__main .entry__data li:nth-child(3) span:nth-child(2) | removeNewline | trim',
|
||||
title: '.entry__main .entry__title | removeNewline | trim',
|
||||
link: '.entry__main .entry__title a@href',
|
||||
subTitle: '.entry__main .entry__subtitle | removeNewline | trim',
|
||||
address: '.entry__main .entry__info | removeNewline | trim'
|
||||
title: 'a@title | removeNewline | trim',
|
||||
link: 'a@href',
|
||||
subTitle: '.p-3 .mb-2 | removeNewline | trim',
|
||||
address: 'div.p-3 > p:nth-child(3) | removeNewline | trim'
|
||||
},
|
||||
paginate: '.numbered-pager__bottom .numbered-pager--info li:nth-child(2) a@href',
|
||||
normalize: normalize,
|
||||
|
||||
Reference in New Issue
Block a user