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:41:38 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
84b28fc197df5cb49258dc9935f2461021bbdb9e
84b28fc1
2 parents
e12df2d5
f29cddbf
Merge branch 'develop' of
http://khuhub.khu.ac.kr/2017103961/Recruitment_Informa…
…tion_chatbot into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
functions/dataFunctions.js
functions/naverFunction.js
functions/programmersFunction.js
functions/dataFunctions.js
View file @
84b28fc
...
...
@@ -94,4 +94,4 @@ const save = async()=> {
module
.
exports
=
{
save
:
save
,
read
:
read
}
\ No newline at end of file
}
...
...
functions/naverFunction.js
View file @
84b28fc
...
...
@@ -79,5 +79,3 @@ const getData = async ()=>{
module
.
exports
=
{
getData
:
getData
}
getData
()
\ No newline at end of file
...
...
functions/programmersFunction.js
View file @
84b28fc
...
...
@@ -61,6 +61,7 @@ const getData = async ()=>{
while
(
true
){
await
page
.
goto
(
`https://programmers.co.kr/job?page=
${
count
}
`
)
content
=
await
page
.
content
()
console
.
log
(
final
,
count
)
if
(
final
<
count
){
console
.
log
(
"finish"
,
result
.
length
)
break
;
...
...
@@ -86,8 +87,8 @@ const getData = async ()=>{
}
result
=
result
.
concat
(
await
makeObject
(
resArr
))
count
=
count
+
1
resArr
=
[]
}
console
.
log
(
result
)
return
result
}
...
...
Please
register
or
login
to post a comment