new file: amazon/__pycache__/approve.cpython-39.pyc
modified: amazon/__pycache__/del_brand.cpython-39.pyc modified: amazon/__pycache__/main.cpython-39.pyc new file: amazon/approve.py modified: amazon/del_brand.py modified: amazon/main.py modified: main.py
This commit is contained in:
@@ -52,7 +52,8 @@ class ZiniaoDriver:
|
||||
command, _ = winreg.QueryValueEx(key, "")
|
||||
winreg.CloseKey(key)
|
||||
if isinstance(command, str):
|
||||
exe_path = command.split()[0]
|
||||
sub = "ziniao.exe"
|
||||
exe_path = command[0: command.find(sub)+len(sub)+1]
|
||||
else:
|
||||
exe_path = command[0]
|
||||
return exe_path
|
||||
@@ -62,7 +63,8 @@ class ZiniaoDriver:
|
||||
command, _ = winreg.QueryValueEx(key, "")
|
||||
winreg.CloseKey(key)
|
||||
if isinstance(command, str):
|
||||
exe_path = command.split()[0]
|
||||
sub = "ziniao.exe"
|
||||
exe_path = command[0: command.find(sub)+len(sub)+1]
|
||||
else:
|
||||
exe_path = command[0]
|
||||
return exe_path
|
||||
@@ -107,6 +109,7 @@ class ZiniaoDriver:
|
||||
"""
|
||||
if version == "v5":
|
||||
process_name = 'SuperBrowser.exe'
|
||||
os.system('taskkill /f /t /im ' + "starter.exe")
|
||||
else:
|
||||
process_name = 'ziniao.exe'
|
||||
os.system('taskkill /f /t /im ' + process_name)
|
||||
@@ -206,7 +209,7 @@ class ZiniaoDriver:
|
||||
|
||||
def start_client(self):
|
||||
"""启动紫鸟客户端"""
|
||||
self.client_path = self.get_zinaio_exe("superbrowser").strip('"')
|
||||
self.client_path = self.get_zinaio_exe("superbrowserv6").strip('"')
|
||||
print(self.client_path)
|
||||
cmd = [self.client_path, '--run_type=web_driver', '--ipc_type=http',
|
||||
'--port=' + str(self.socket_port)]
|
||||
@@ -339,9 +342,9 @@ class ZiniaoDriver:
|
||||
return False
|
||||
|
||||
|
||||
class AmazoneDriver(ZiniaoDriver):
|
||||
"""亚马逊专用驱动类,继承自ZiniaoDriver"""
|
||||
|
||||
class AmamzonBase(ZiniaoDriver):
|
||||
"""亚马逊操作基类,包含一些通用方法"""
|
||||
|
||||
def SwitchingCountries(self, country_name: str):
|
||||
"""
|
||||
切换国家
|
||||
@@ -433,6 +436,12 @@ class AmazoneDriver(ZiniaoDriver):
|
||||
print(f"切换国家时发生异常:{traceback.format_exc()}")
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
class AmazoneDriver(AmamzonBase):
|
||||
"""亚马逊专用驱动类,继承自ZiniaoDriver"""
|
||||
|
||||
def SwitchPage(self):
|
||||
"""
|
||||
切换至 管理所有库存页面
|
||||
|
||||
Reference in New Issue
Block a user