Amend transformation engine

This commit is contained in:
2025-06-26 12:40:51 +02:00
parent e97f9bdd61
commit 2289489fe1
12 changed files with 124 additions and 89 deletions

View File

@@ -41,9 +41,10 @@ scraper:
value: "//li/text()"
transform:
- name: "replace"
parameters:
- " ("
- ""
parameters: [
" (",
""
]
language:
steps:
- type: xpath
@@ -76,12 +77,19 @@ scraper:
- type: xpath
value: "./text()"
regional-name:
fallback:
default: "N/A"
steps:
- type: xpath
value: "./td/a[2]"
value: "./td[2]"
- type: xpath
value: "./text()"
transform:
- name: "removeInnerQuotes"
parameters: []
rarity:
fallback:
default: "N/A"
steps:
- type: xpath
value: "./td/a[3]"