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:36:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e4ec58bcd8712844a43a8fd50373eaf768e3719
4e4ec58b
1 parent
633bf9d8
programmersFunction.js 오류 수정
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 @
4e4ec58
...
...
@@ -94,4 +94,4 @@ const save = async()=> {
module
.
exports
=
{
save
:
save
,
read
:
read
}
\ No newline at end of file
}
...
...
functions/naverFunction.js
View file @
4e4ec58
...
...
@@ -79,5 +79,3 @@ const getData = async ()=>{
module
.
exports
=
{
getData
:
getData
}
getData
()
\ No newline at end of file
...
...
functions/programmersFunction.js
View file @
4e4ec58
...
...
@@ -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