Check and fix on Chrome tasks

- Added `pytz` dependency to `requirements.txt` for timezone handling.
- Introduced `get_macys_product_url_parse` function to replace the old `get_url_path_parse` for better clarity and maintain backward compatibility.
- Enhanced logging throughout the `get_active_tab_html_parse` and `get_rule_relativeTime` functions for improved debugging and traceability.
- Updated JSON examples to reflect changes in expected keys and added new fields for better evaluation context.
- Removed deprecated execution commands from JSON examples to streamline the evaluation process.
This commit is contained in:
yuanmengqi
2025-07-06 07:52:37 +00:00
parent 1b40a458de
commit 9be6fcd688
20 changed files with 521 additions and 171 deletions

View File

@@ -1,7 +1,7 @@
{
"id": "2888b4e6-5b47-4b57-8bf5-c73827890774",
"snapshot": "chrome",
"instruction": "Show me all men's large-size short-sleeve T-shirts with a discount of 50% or more.",
"instruction": "Show me all men's large-size short-sleeve shirts with a discount of 50% or more.",
"source": "test_task_1",
"config": [
{
@@ -49,10 +49,10 @@
"goto_prefix": "https://www.",
"parse_keys": [
"mens_clothing",
"t_shirts",
"shirts",
"Men_regular_size_t",
"Price_discount_range",
"Sleeve_length"
"short_sleeve"
]
},
"expected": {
@@ -60,13 +60,14 @@
"rules": {
"expected": {
"mens_clothing": true,
"t_shirts": true,
"shirts": true,
"Men_regular_size_t": "L",
"Price_discount_range": "50_PERCENT_ off & more",
"Sleeve_length": "Short Sleeve"
"short_sleeve": true
}
}
}
},
"proxy": true
"proxy": false,
"possibility_of_env_change": "medium"
}