modified: app/amazon/__pycache__/del_brand.cpython-39.pyc

modified:   app/amazon/__pycache__/match_action.cpython-39.pyc
	modified:   app/amazon/del_brand.py
	modified:   app/amazon/match_action.py
	modified:   app/assets/delete-brand.js
	modified:   app/new_web_source/delete-brand.html
	new file:   "app/web_source/brand - \345\211\257\346\234\254.html"
This commit is contained in:
铭坤
2026-04-12 20:52:26 +08:00
parent 62d30ec190
commit d8098b0378
7 changed files with 1089 additions and 21 deletions

View File

@@ -501,7 +501,7 @@ class AmamzonBase(ZiniaoDriver):
try: try:
pwd_input = self.tab.eles('xpath://input[@type="password"]',timeout=10) pwd_input = self.tab.eles('xpath://input[@type="password"]',timeout=10)
if len(pwd_input) > 0: if len(pwd_input) > 0:
pwd_input[0].input(password) pwd_input[0].input(password,clear=True)
submit_btn = self.tab.eles('xpath://input[@id="signInSubmit"]',timeout=10) submit_btn = self.tab.eles('xpath://input[@id="signInSubmit"]',timeout=10)
if len(submit_btn) > 0: if len(submit_btn) > 0:
submit_btn[0].click() submit_btn[0].click()

View File

@@ -127,13 +127,13 @@ class AmzoneMatchAction(AmamzonBase):
for sku_ele in sku_ls: for sku_ele in sku_ls:
# solve_problem = sku_ele.eles('xpath:.//kat-link[@label="解决商品信息问题"]') # solve_problem = sku_ele.eles('xpath:.//kat-link[@label="解决商品信息问题"]')
asin = sku_ele.ele('xpath:.//div[contains(@class,"JanusSplitBox-module__container")]//div[contains(@class,"JanusSplitBox-module__panel--") and contains(string(.),"ASIN")]/..//div[last()]').text asin = sku_ele.ele('xpath:.//div[contains(@class,"JanusSplitBox-module__container")]//div[contains(@class,"JanusSplitBox-module__panel--") and contains(string(.),"ASIN")]/..//div[last()]',timeout=10).text
print(f"{self.mark_name}】ASIN {asin} 找到....") print(f"{self.mark_name}】ASIN {asin} 找到....")
if asin in already_asin: if asin in already_asin:
print(f"{self.mark_name}{asin} 已经处理过了,跳过") print(f"{self.mark_name}{asin} 已经处理过了,跳过")
continue continue
price_match = sku_ele.eles('xpath:.//div[@data-test-id="FeaturedOfferPrice"]//a[text()="匹配"]') price_match = sku_ele.eles('xpath:.//div[@data-test-id="FeaturedOfferPrice"]//a[text()="匹配"]',timeout=5)
if len(price_match) == 0: if len(price_match) == 0:
print(f"{self.mark_name}{asin},没有推荐价格匹配按钮") print(f"{self.mark_name}{asin},没有推荐价格匹配按钮")
yield (asin,"无需处理") yield (asin,"无需处理")

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,6 @@
<!doctype html> <!doctype html>
<html lang="zh-CN"> <html lang="zh-CN">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>删除品牌 - 数富AI</title> <title>删除品牌 - 数富AI</title>
@@ -10,10 +9,8 @@
<link rel="modulepreload" crossorigin href="/assets/brand-DRn3N4FA.js"> <link rel="modulepreload" crossorigin href="/assets/brand-DRn3N4FA.js">
<link rel="stylesheet" crossorigin href="/assets/pywebview-BLoeiUcF.css"> <link rel="stylesheet" crossorigin href="/assets/pywebview-BLoeiUcF.css">
<link rel="stylesheet" crossorigin href="/assets/delete-brand-DfRLfrtm.css"> <link rel="stylesheet" crossorigin href="/assets/delete-brand-DfRLfrtm.css">
</head> </head>
<body>
<body>
<div id="app"></div> <div id="app"></div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff