showin price on ebay listings

This commit is contained in:
orangecoding
2021-03-06 21:26:39 +01:00
parent 6cb24cd57f
commit a3420ab4ef
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ const config = {
crawlContainer: '#srchrslt-adtable .ad-listitem',
crawlFields: {
id: '.aditem@data-adid | int',
price: '.aditem-details strong | removeNewline | trim',
price: '.aditem-main--middle--price | removeNewline | trim',
size: '.aditem-main .text-module-end span:nth-child(2) | removeNewline | trim',
title: '.aditem-main .text-module-begin a | removeNewline | trim',
link: '.aditem-main .text-module-begin a@href | removeNewline | trim',

View File

@@ -30,6 +30,7 @@ describe('#kleinanzeigen testsuite()', () => {
expect(notify.size).to.be.a('string');
expect(notify.title).to.be.a('string');
expect(notify.link).to.be.a('string');
expect(notify.price).to.be.a('string');
expect(notify.address).to.be.a('string');
/** check the values if possible **/