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
f7015baf
Commit
f7015baf
authored
Nov 05, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
bc84b63d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
4 deletions
+14
-4
payment.exe
dist/payment.exe
+0
-0
return_goods.exe
dist/return_goods.exe
+0
-0
spa_search.exe
dist/spa_search.exe
+0
-0
domain.py
src/helper/domain.py
+8
-1
payment.py
src/payment.py
+4
-2
初始化.bat
初始化.bat
+2
-1
No files found.
dist/payment.exe
0 → 100644
View file @
f7015baf
File added
dist/return_goods.exe
View file @
f7015baf
No preview for this file type
dist/spa_search.exe
View file @
f7015baf
No preview for this file type
src/helper/domain.py
View file @
f7015baf
...
...
@@ -27,7 +27,14 @@ def domain_page(page,country):
while
True
:
time
.
sleep
(
1
)
title
=
page
.
title
if
title
==
"Amazon Sign-In"
:
valid_titles
=
[
"Amazon Sign-In"
,
"Amazon Sign In"
,
"Connexion Amazon"
,
"Amazonサインイン"
,
"Amazon Iniciar sesión"
]
if
title
in
valid_titles
:
print
(
"请登录账号"
)
continue
...
...
src/
refund
.py
→
src/
payment
.py
View file @
f7015baf
...
...
@@ -13,6 +13,7 @@ from lxml import etree
from
helper
import
helper
,
excel
,
file
,
domain
,
logger
country
=
None
payeeCode
=
None
log
=
logger
.
ConsoleLog
()
...
...
@@ -80,7 +81,7 @@ def export_list_read_data():
def
export_details_read_data
(
invoice_number
):
params
=
{
"invoiceNumber"
:
invoice_number
,
"payeeCode"
:
"E8PFB"
,
"payeeCode"
:
payeeCode
,
"activeTab"
:
"lineItems"
,
}
# 将字典转换为 URL 查询参数
...
...
@@ -89,7 +90,7 @@ def export_details_read_data(invoice_number):
page_get
(
full_url
)
# 读取详情内容
file_name
=
f
"
refund
\\
{invoice_number}.csv"
file_name
=
f
"
payment
\\
{invoice_number}.csv"
if
os
.
path
.
isfile
(
file_name
):
return
pd
.
read_csv
(
file_name
)
...
...
@@ -319,6 +320,7 @@ def main():
if
__name__
==
'__main__'
:
try
:
country
=
helper
.
get_input_with_default
(
"国家"
,
"usa"
)
payeeCode
=
helper
.
get_input_with_default
(
"payeeCode"
,
"E8PFB"
)
domain
.
domain_page
(
page
,
country
)
main
()
page
.
close
()
...
...
初始化.bat
View file @
f7015baf
pip.exe install -i https://mirrors.cloud.tencent.com/pypi/simple -r requirements.txt
pyinstaller -F -n
refund.exe .\src\refund
.py
pyinstaller -F -n
payment.exe .\src\payment
.py
pyinstaller -F -n return_goods.exe .\src\return_goods.py
pyinstaller -F -n spa_search.exe .\src\spa_search.py
\ No newline at end of file
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