Implement XPath index access

This commit is contained in:
rak
2025-06-25 23:11:05 +02:00
parent 39c0ebfc7c
commit e97f9bdd61
6 changed files with 48 additions and 72 deletions

View File

@@ -56,33 +56,37 @@ scraper:
value: "//li/abbr/text()"
card-print:
multi: true
root:
type: css
value: ".tabber.wds-tabber > div"
discriminator:
direction: asc
root:
type: css
value: ".wds-tabs__tab"
steps:
- type: xpath
value: "//li/div/a/text()"
value: ".wds-tab__content"
root:
type: css
value: "table > tbody > tr:has(> td)"
id:
steps:
- type: xpath
value: ".//table/tbody/tr[2]/td[1]/a/text()"
value: "./td/a[0]"
- type: xpath
value: "./text()"
name:
steps:
- type: xpath
value: ".//table/tbody/tr[2]/td[1]/a/text()"
value: "./td/a[1]"
- type: xpath
value: "./text()"
regional-name:
steps:
- type: xpath
value: ".//table/tbody/tr[2]/td[2]/a/text()"
value: "./td/a[2]"
- type: xpath
value: "./text()"
rarity:
steps:
- type: xpath
value: ".//table/tbody/tr[2]/td[3]/a/text()"
value: "./td/a[3]"
- type: xpath
value: "./text()"
card:
name:
root: