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
3d4012f4
Commit
3d4012f4
authored
Oct 26, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
fbef146a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
+32
-22
invoices.py
src/invoices.py
+16
-11
returns.py
src/returns.py
+16
-11
No files found.
src/invoices.py
View file @
3d4012f4
...
@@ -28,7 +28,12 @@ page.set.download_path(download_path)
...
@@ -28,7 +28,12 @@ page.set.download_path(download_path)
# 忽略 openpyxl 样式警告
# 忽略 openpyxl 样式警告
warnings
.
filterwarnings
(
"ignore"
,
category
=
UserWarning
,
module
=
"openpyxl"
)
warnings
.
filterwarnings
(
"ignore"
,
category
=
UserWarning
,
module
=
"openpyxl"
)
while
True
:
def
page_get
(
url
):
host
=
domain
.
switch_domain
(
country
)
full_url
=
host
+
url
page
.
get
(
full_url
,
timeout
=
3
)
while
True
:
time
.
sleep
(
1
)
time
.
sleep
(
1
)
title
=
page
.
title
title
=
page
.
title
if
title
==
"Amazon Sign-In"
:
if
title
==
"Amazon Sign-In"
:
...
...
src/returns.py
View file @
3d4012f4
...
@@ -22,7 +22,12 @@ helper.make_dir(download_path)
...
@@ -22,7 +22,12 @@ helper.make_dir(download_path)
# 设置下载路径,确保在打开浏览器前设置
# 设置下载路径,确保在打开浏览器前设置
page
.
set
.
download_path
(
download_path
)
page
.
set
.
download_path
(
download_path
)
while
True
:
def
page_get
(
url
):
host
=
domain
.
switch_domain
(
country
)
full_url
=
host
+
url
page
.
get
(
full_url
,
timeout
=
3
)
while
True
:
time
.
sleep
(
1
)
time
.
sleep
(
1
)
title
=
page
.
title
title
=
page
.
title
if
title
==
"Amazon Sign-In"
:
if
title
==
"Amazon Sign-In"
:
...
...
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