Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정승우
/
YaguMoa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
SW0000J
2020-06-03 16:49:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d717074c040227a5d50ae6dbefb9f7cd2f7c3dcb
d717074c
1 parent
ab788d09
app.js 불필요 정보 크롤링 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
d717074
const
axios
=
require
(
"axios"
);
const
cheerio
=
require
(
"cheerio"
);
const
log
=
console
.
log
;
const
getHtml
=
async
()
=>
{
try
{
...
...
@@ -14,7 +13,7 @@ getHtml()
.
then
(
html
=>
{
let
ulList
=
[];
const
$
=
cheerio
.
load
(
html
.
data
);
const
$bodyList
=
$
(
"ul.list li"
).
children
(
"div.item-box01"
);
const
$bodyList
=
$
(
"
div.list-type038
ul.list li"
).
children
(
"div.item-box01"
);
$bodyList
.
each
(
function
(
i
,
elem
)
{
ulList
[
i
]
=
{
...
...
Please
register
or
login
to post a comment