Skip to content

Commit

Permalink
feat(store): add spielegrotte (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnk93 committed Dec 2, 2020
1 parent a0a961a commit cf70f1f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -210,6 +210,7 @@ environment variables are **optional**._
| Proshop (DK) | `proshop-dk`|
| Saturn (DE) | `saturn`|
| Scan (UK) | `scan`|
| Spielegrotte | `spielegrotte`|
| Target | `target`|
| Unieuro (IT) | `unieuro`|
| Very (UK) | `very`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -68,6 +68,7 @@ import {ProshopDE} from './proshop-de';
import {ProshopDK} from './proshop-dk';
import {Saturn} from './saturn';
import {Scan} from './scan';
import {Spielegrotte} from './spielegrotte';
import {Store} from './store';
import {Target} from './target';
import {TopAchat} from './topachat';
Expand Down Expand Up @@ -150,6 +151,7 @@ export const storeList = new Map([
[ProshopDK.name, ProshopDK],
[Saturn.name, Saturn],
[Scan.name, Scan],
[Spielegrotte.name, Spielegrotte],
[Target.name, Target],
[TopAchat.name, TopAchat],
[Unieuro.name, Unieuro],
Expand Down
44 changes: 44 additions & 0 deletions src/store/model/spielegrotte.ts
@@ -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'
};

0 comments on commit cf70f1f

Please sign in to comment.