Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
checkData
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ZGC_INDEX
checkData
Commits
85a21bb8
Commit
85a21bb8
authored
Jan 14, 2020
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
22065cff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
checkData.py
checkData.py
+5
-1
No files found.
checkData.py
View file @
85a21bb8
...
@@ -39,6 +39,10 @@ def checkData(check_data):
...
@@ -39,6 +39,10 @@ def checkData(check_data):
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36'
}
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36'
}
session
=
requests
.
Session
()
session
=
requests
.
Session
()
if
check_data
.
empty
:
print
(
'今日无新增数据'
)
return
check_data
print
(
'共'
+
str
(
len
(
check_data
))
+
'条数据待审核'
)
print
(
'共'
+
str
(
len
(
check_data
))
+
'条数据待审核'
)
result
=
[]
result
=
[]
...
@@ -358,4 +362,4 @@ def checkData(check_data):
...
@@ -358,4 +362,4 @@ def checkData(check_data):
check_data
[
'source'
]
=
source_list
check_data
[
'source'
]
=
source_list
check_data
[
'price'
]
=
price_list
check_data
[
'price'
]
=
price_list
return
check_data
return
check_data
\ 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