Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정태규
/
TrendingTopics
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-12-09 03:44:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d3cef20e19b03b9260f14fc1edbf5881863526be
d3cef20e
1 parent
4eac1c75
Update zum
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
zum/package-lock.json
zum/package.json
zum/zum.js
zum/package-lock.json
View file @
d3cef20
This diff is collapsed. Click to expand it.
zum/package.json
View file @
d3cef20
...
...
@@ -8,8 +8,5 @@
},
"keywords"
:
[],
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"crawler"
:
"^1.3.0"
}
"license"
:
"ISC"
}
...
...
zum/zum.js
View file @
d3cef20
var
Crawler
=
require
(
"crawler"
);
var
c
=
new
Crawler
({
maxConnections
:
10
,
callback
:
function
(
error
,
res
,
done
)
{
...
...
@@ -7,18 +7,21 @@ var c = new Crawler({
console
.
log
(
error
);
}
else
{
var
$
=
res
.
$
;
console
.
log
(
'ZUM '
+
$
(
"title"
).
text
());
let
List
=
[];
List
[
0
]
=
'zum NOW 이슈 검색어'
;
const
$bodyList1
=
$
(
"div.realtime_wrap"
).
children
(
"div.inner_box"
);
const
$bodyList2
=
$
(
"ul.slide_words_list li"
).
children
(
"div.cont"
);
console
.
log
(
'< '
+
$bodyList1
.
find
(
'span.time_data'
).
text
()
+
' >'
);
List
[
1
]
=
(
'< '
+
$bodyList1
.
find
(
'span.time_data'
).
text
()
+
' >'
);
$bodyList2
.
each
(
function
(
i
,
elem
)
{
console
.
log
((
i
+
1
)
+
". "
+
$
(
this
).
find
(
'span.word'
).
text
());
List
[
i
+
2
]
=
((
i
+
1
)
+
". "
+
$
(
this
).
find
(
'span.word'
).
text
());
});
console
.
log
(
List
);
}
done
();
}
});
c
.
queue
(
'https://issue.zum.com/'
);
...
...
Please
register
or
login
to post a comment