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
a7e04eca
Commit
a7e04eca
authored
Dec 11, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sku_relations
parent
5dc0d51e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
17 deletions
+4
-17
payment.py
src/payment.py
+1
-7
return_goods.py
src/return_goods.py
+1
-1
spa_search.py
src/spa_search.py
+2
-9
No files found.
src/payment.py
View file @
a7e04eca
...
...
@@ -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
)
...
...
src/return_goods.py
View file @
a7e04eca
...
...
@@ -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
():
...
...
src/spa_search.py
View file @
a7e04eca
...
...
@@ -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'
)
...
...
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