Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
crawler-py
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
jimmy蒋政彪
crawler-py
Commits
101fb02d
Commit
101fb02d
authored
Aug 29, 2023
by
jimmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交百度和boss
parent
b7d0d80b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
crawler.py
crawler.py
+1
-2
No files found.
crawler.py
View file @
101fb02d
...
@@ -46,14 +46,13 @@ def CrawlerLaunch():
...
@@ -46,14 +46,13 @@ def CrawlerLaunch():
while
True
:
while
True
:
now
=
datetime
.
datetime
.
now
()
now
=
datetime
.
datetime
.
now
()
randomtime
=
random
.
randint
(
3
,
120
)
randomtime
=
random
.
randint
(
3
,
120
)
randomtime
=
5
print
(
str
(
now
)
+
":启动等待时间"
+
str
(
randomtime
))
print
(
str
(
now
)
+
":启动等待时间"
+
str
(
randomtime
))
time
.
sleep
(
randomtime
)
time
.
sleep
(
randomtime
)
res1
=
crawler_baidu
.
CrawlerBaidu
()
res1
=
crawler_baidu
.
CrawlerBaidu
()
if
res1
==
100
:
if
res1
==
100
:
time
.
sleep
(
5
)
crawler_boss
.
CrawlerBoss
()
crawler_boss
.
CrawlerBoss
()
def
Log
(
dataS
):
def
Log
(
dataS
):
with
open
(
str
(
datetime
.
date
.
today
())
+
".txt"
,
"a+"
)
as
f
:
with
open
(
str
(
datetime
.
date
.
today
())
+
".txt"
,
"a+"
)
as
f
:
f
.
write
(
dataS
+
"
\n
"
)
f
.
write
(
dataS
+
"
\n
"
)
...
...
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