Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대선
/
Recruitment_Information_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대선
2021-06-05 20:02:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dd56ae86da2d6331646018745a4837b30035217e
dd56ae86
1 parent
a41f11cf
naverFunction 오류 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
functions/naverFunction.js
functions/naverFunction.js
View file @
dd56ae8
...
...
@@ -44,16 +44,21 @@ const getData = async ()=>{
await
page
.
goto
(
'https://recruit.navercorp.com/naver/job/list/developer'
)
let
content
=
await
page
.
content
()
let
temp
=
null
;
while
(
true
){
if
(
temp
==
content
)
break
;
let
temp
=
""
;
let
Flag
=
true
while
(
Flag
){
if
(
temp
==
content
){
Flag
=
false
break
;
}
else
{
temp
=
await
page
.
content
()
temp
=
content
await
page
.
click
(
'#moreDiv > button'
).
catch
((
error
)
=>
{
Flag
=
false
})
await
page
.
waitForTimeout
(
1500
)
content
=
await
page
.
content
()
}
}
let
$
=
cheerio
.
load
(
content
,
{
decodeEntities
:
true
})
...
...
@@ -74,3 +79,5 @@ const getData = async ()=>{
module
.
exports
=
{
getData
:
getData
}
getData
()
\ No newline at end of file
...
...
Please
register
or
login
to post a comment