Commit a7e04eca authored by 邱阿朋's avatar 邱阿朋

sku_relations

parent 5dc0d51e
......@@ -38,7 +38,7 @@ warnings.filterwarnings("ignore", category=UserWarning, module="openpyxl")
def page_get(url):
host = domain.switch_domain(country)
full_url = host + url
page.get(full_url, timeout=3)
page.get(full_url, timeout=5)
def export_list_read_data():
......@@ -50,12 +50,6 @@ def export_list_read_data():
file_name = 'Payments.xlsx'
if not os.path.isfile(file_name):
raise FileNotFoundError(f"{file_name},文件不存在")
pass
# page_get(f"hz/vendor/members/remittance/home")
# page.ele("#remittance-home-select-all", timeout=2).click()
# page.ele("#remittance-home-export-link", timeout=2).click.to_download()
# file.wait_for_downloads(file_name)
all_df = pd.read_excel(file_name, header=None)
......
......@@ -26,7 +26,7 @@ page.set.download_path(download_path)
def page_get(url):
host = domain.switch_domain(country)
full_url = host + url
page.get(full_url, timeout=3)
page.get(full_url, timeout=5)
def export_list_read_data():
......
......@@ -30,20 +30,13 @@ page.set.download_path(download_path)
def page_get(url):
host = domain.switch_domain(country)
full_url = host + url
page.get(full_url, timeout=3)
page.get(full_url, timeout=5)
def export_list_read_data():
file_name = "ContraCogsInvoices.xls"
if not os.path.isfile(file_name):
raise FileNotFoundError(f"{file_name},文件不存在")
# page_get("hz/vendor/members/coop?ref_=vc_xx_subNav")
# # 全选
# page.ele("#select-all").click()
# # 点击选项卡
# page.ele("#cc-invoice-actions-dropdown").click()
# # 点击下载报表
# page.ele("#cc-invoice-actions-dropdown_2").click.to_download().wait()
return pd.read_excel(file_name, engine='xlrd')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment