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:55:32 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
167c5b07d95ed515ecc06479135038fa33dfdf2d
167c5b07
2 parents
d3cef20e
f22d1f28
Merge branch 'feature/nate'
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
nate/nate.js
nate/package-lock.json
nate/package.json
nate/nate.js
View file @
167c5b0
...
...
@@ -7,14 +7,17 @@ var c = new Crawler({
console
.
log
(
error
);
}
else
{
var
$
=
res
.
$
;
console
.
log
(
'nate 실시간 이슈 키워드'
);
let
List
=
[];
List
[
0
]
=
'nate 실시간 이슈 키워드'
;
const
$bodyList
=
$
(
"ol.rankList"
).
children
(
"li.rl"
);
console
.
log
(
''
);
$bodyList
.
each
(
function
(
i
,
elem
)
{
console
.
log
((
i
+
1
)
+
". "
+
$
(
this
).
find
(
'span.kw'
).
text
().
slice
((
i
+
1
)
/
10
+
1
));
List
[
i
+
1
]
=
((
i
+
1
)
+
". "
+
$
(
this
).
find
(
'span.kw'
).
text
().
slice
((
i
+
1
)
/
10
+
1
));
});
console
.
log
(
List
);
}
done
();
}
...
...
nate/package-lock.json
View file @
167c5b0
This diff is collapsed. Click to expand it.
nate/package.json
View file @
167c5b0
...
...
@@ -6,10 +6,6 @@
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"keywords"
:
[],
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"crawler"
:
"^1.3.0"
}
"license"
:
"ISC"
}
...
...
Please
register
or
login
to post a comment