Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
amazon_reports
Commits
da022e95
Commit
da022e95
authored
Dec 21, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spa查询
parent
c46503f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
spa_search.py
src/spa_search.py
+1
-2
No files found.
src/spa_search.py
View file @
da022e95
...
...
@@ -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
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment