{
"parsing_instructions": {
"developer_name": {
"_fns": [
{
"_args": [
"//div[contains(@class, 'brand-wrapper')]//span[@class='brand developer']"
],
"_fn": "xpath"
},
{
"_args": [
"normalize-space(.)"
],
"_fn": "xpath"
},
{
"_args": " ",
"_fn": "join"
}
]
},
"main_price": {
"_fns": [
{
"_args": [
"//div[contains(@class, 'product-info-wrapper')]//div[contains(@class, 'price')]/text()"
],
"_fn": "xpath_one"
},
{
"_fn": "amount_from_string"
}
]
},
"title": {
"_fns": [
{
"_args": [
"//div[contains(@class, 'product-info-wrapper')]//h2/text()"
],
"_fn": "xpath_one"
},
{
"_args": [
"^\\s*(.[\\s\\S]*?)\\s*$",
1
],
"_fn": "regex_search"
}
]
}
},
"prompt_schema": {
"properties": {
"developer_name": {
"description": "开发者名称。",
"title": "开发者名称",
"type": "string"
},
"main_price": {
"description": "产品的主价格。",
"title": "主价格",
"type": "number"
},
"platform_name": {
"description": "平台名称。",
"title": "平台名称",
"type": "string"
},
"title": {
"description": "产品标题。",
"title": "标题",
"type": "string"
}
},
"required": [
"title",
"main_price",
"developer_name",
"platform_name"
],
"title": "字段",
"type": "object"
}
}