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

spa查询

parent c46503f3
......@@ -64,7 +64,7 @@ def get_report_table_html(invoice_id):
def get_report_agreement_text(invoice_id):
page.ele("#return-to-invoice-overview-announce").click()
page.refresh()
while True:
try:
# 点击选项卡
......@@ -127,7 +127,6 @@ def export_item_read_data(invoice_id):
# 提取所有链接
links = tree.xpath('//table[@id="backup-report-table"]//a/@href')
if len(links) == 0:
page.refresh()
data_list = get_report_agreement_text(invoice_id)
return {"Accrual For Current Period": pd.DataFrame(data_list)}
......
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