mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-10-04 14:53:22 +08:00
fix(amazon): 使用 ul 类名 XPath 抓取五点描述
chore: 将扩展 displayName 更新为 v0.7.1.10-beta Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
52526c6641
commit
bde6022230
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "azon-seeker",
|
||||
"displayName": "Azon Seeker v0.7.1.9-beta",
|
||||
"displayName": "Azon Seeker v0.7.1.10-beta",
|
||||
"version": "0.7.2",
|
||||
"private": true,
|
||||
"description": "Starter modify by honestfox101 and PetrichorFun",
|
||||
|
||||
@ -666,9 +666,9 @@ export class AmazonDetailPageInjector extends BaseInjector {
|
||||
}
|
||||
return nodes.length > 0 ? nodes : undefined;
|
||||
};
|
||||
const abouts = $x(
|
||||
`//*[normalize-space(text())='About this item']/following-sibling::ul[1]/li`,
|
||||
)?.map((el) => el.innerText);
|
||||
const abouts = $x<HTMLElement>(
|
||||
`(//ul[contains(concat(' ', normalize-space(@class), ' '), ' a-unordered-list ') and contains(concat(' ', normalize-space(@class), ' '), ' a-vertical ') and contains(concat(' ', normalize-space(@class), ' '), ' a-spacing-mini ')])[1]/li`,
|
||||
)?.map((el) => el.innerText.trim());
|
||||
const brand = $x(`//*[./span[normalize-space(text())='Brand']]/following-sibling::*[1]`)?.[0]
|
||||
.innerText;
|
||||
const flavor = $x(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user