feat(store): add spielegrotte (#1056)

This commit is contained in:
fnk93
2020-12-02 22:25:39 +01:00
committed by GitHub
parent a0a961aa5b
commit cf70f1ff4f
3 changed files with 47 additions and 0 deletions
+1
View File
@@ -210,6 +210,7 @@ environment variables are **optional**._
| Proshop (DK) | `proshop-dk`| | Proshop (DK) | `proshop-dk`|
| Saturn (DE) | `saturn`| | Saturn (DE) | `saturn`|
| Scan (UK) | `scan`| | Scan (UK) | `scan`|
| Spielegrotte | `spielegrotte`|
| Target | `target`| | Target | `target`|
| Unieuro (IT) | `unieuro`| | Unieuro (IT) | `unieuro`|
| Very (UK) | `very`| | Very (UK) | `very`|
+2
View File
@@ -68,6 +68,7 @@ import {ProshopDE} from './proshop-de';
import {ProshopDK} from './proshop-dk'; import {ProshopDK} from './proshop-dk';
import {Saturn} from './saturn'; import {Saturn} from './saturn';
import {Scan} from './scan'; import {Scan} from './scan';
import {Spielegrotte} from './spielegrotte';
import {Store} from './store'; import {Store} from './store';
import {Target} from './target'; import {Target} from './target';
import {TopAchat} from './topachat'; import {TopAchat} from './topachat';
@@ -150,6 +151,7 @@ export const storeList = new Map([
[ProshopDK.name, ProshopDK], [ProshopDK.name, ProshopDK],
[Saturn.name, Saturn], [Saturn.name, Saturn],
[Scan.name, Scan], [Scan.name, Scan],
[Spielegrotte.name, Spielegrotte],
[Target.name, Target], [Target.name, Target],
[TopAchat.name, TopAchat], [TopAchat.name, TopAchat],
[Unieuro.name, Unieuro], [Unieuro.name, Unieuro],
+44
View File
@@ -0,0 +1,44 @@
import {Store} from './store';
export const Spielegrotte: Store = {
labels: {
inStock: [
{
container:
'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > a.klein > img',
text: ['']
}
],
maxPrice: {
container:
'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > font > b',
euroFormat: true
},
outOfStock: {
container:
'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > font > b',
text: ['Dieses Produkt ist leider neu nicht mehr verfügbar']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.spielegrotte.de/index.php?kat=100056&anr=54288'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.spielegrotte.de/index.php?kat=100100&anr=56005'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.spielegrotte.de/index.php?kat=100100&anr=56006'
}
],
name: 'spielegrotte'
};