From 9de2f670c3ac1599b9d371b9d7b1d906dc3a5681 Mon Sep 17 00:00:00 2001 From: Andreas Haller Date: Tue, 13 Feb 2024 08:23:13 +0100 Subject: [PATCH] Update helix-query.yaml --- helix-query.yaml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/helix-query.yaml b/helix-query.yaml index ec53da8..9ef56c2 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -5,9 +5,18 @@ indices: name: select: head > meta[property="og:title"] value: attribute(el, "content") - features: - select: head > meta[property="og:title"] - value: attribute(el, "content") - specifications: - select: head > meta[property="og:title"] - value: attribute(el, "content") + feature-names: + select: .features > div > div:first-child + value: textContent(el) + feature-values: + select: .features > div > div:nth-child(2) + value: textContent(el) + specification-names: + select: .specifications > div > div:first-child + value: textContent(el) + specification-values: + select: .specifications > div > div:nth-child(2) + value: textContent(el) + lastModified: + select: none + value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")