Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download
Project
Project
Details
Activity
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
hujun
download
Commits
525e1618
Commit
525e1618
authored
Dec 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
024e5f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
download.py
download.py
+3
-3
No files found.
download.py
View file @
525e1618
...
...
@@ -110,9 +110,9 @@ class DownFile:
string_end
=
url
.
find
(
"?"
)
file_url
=
url
[
0
:
string_end
]
time_array
=
time
.
strptime
(
item
[
'call_time'
],
'
%
Y-
%
m-
%
d'
)
local_dir
=
time
.
strftime
(
'
%
Y
-
%
m-
%
d'
,
time_array
)
local_file
=
self
.
save_path
+
local_dir
+
re
.
findall
(
r".com\D.*"
,
file_url
)[
0
][
5
:]
time_array
=
time
.
strptime
(
item
[
'call_time'
],
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S
'
)
local_dir
=
time
.
strftime
(
'
%
Y
%
m
%
d'
,
time_array
)
local_file
=
self
.
save_path
+
local_dir
+
'/'
+
re
.
findall
(
r".com\D.*"
,
file_url
)[
0
][
5
:]
if
self
.
check_file
(
local_file
):
old_num
=
old_num
+
1
...
...
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