Toggle navigation
Toggle navigation
This project
Loading...
Sign in
전세계
/
FakerQuiz
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
전세계
2020-06-03 18:36:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2abb45f38bd4095b9e20126343059912a38cff3
c2abb45f
1 parent
94fbbea6
기능: 대회 별 전적 크롤링
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
app.js
app.js
View file @
c2abb45
...
...
@@ -49,7 +49,7 @@ getHTML()
played
:
$
(
this
).
find
(
'div.play_area p.value'
).
text
(),
record
:
$
(
this
).
find
(
'div.log_area p.value'
).
text
(),
kDA
:
$
(
this
).
find
(
'div.kda_area p.value'
).
text
()
}
}
;
});
fakerData
[
'recentLCK'
]
=
{
...
...
@@ -82,6 +82,34 @@ getHTML()
kP
:
td
.
eq
(
11
).
text
()
}
//#endregion
//#region 대회 별 전적
var
tr
=
$
(
'div.scriptorium'
).
children
(
'div.listTable'
).
eq
(
3
).
find
(
'table tbody'
).
children
();
var
competitionList
=
[];
tr
.
each
(
function
(
i
,
elem
)
{
competitionList
[
i
]
=
{
name
:
$
(
this
).
children
().
eq
(
0
).
text
().
replace
(
$
(
this
).
children
().
eq
(
0
).
find
(
'span'
).
text
(),
''
),
totalGamePlay
:
$
(
this
).
children
().
eq
(
1
).
text
(),
totalWin
:
$
(
this
).
children
().
eq
(
2
).
text
(),
totalLose
:
$
(
this
).
children
().
eq
(
3
).
text
(),
winRate
:
$
(
this
).
children
().
eq
(
4
).
text
(),
totalKill
:
$
(
this
).
children
().
eq
(
5
).
text
(),
totalDeath
:
$
(
this
).
children
().
eq
(
6
).
text
(),
totalAssist
:
$
(
this
).
children
().
eq
(
7
).
text
(),
killPerMatch
:
$
(
this
).
children
().
eq
(
8
).
text
(),
deathPerMatch
:
$
(
this
).
children
().
eq
(
9
).
text
(),
assistPerMatch
:
$
(
this
).
children
().
eq
(
10
).
text
(),
kDA
:
$
(
this
).
children
().
eq
(
11
).
text
(),
kP
:
$
(
this
).
children
().
eq
(
12
).
text
()
};
});
fakerData
[
'competitions'
]
=
{
list
:
competitionList
}
//#endregion
return
fakerData
;
})
.
then
(
res
=>
console
.
log
(
res
));
...
...
Please
register
or
login
to post a comment