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:54:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a7ba45aef6a82b03aa8c71da00760c9222ea2998
a7ba45ae
1 parent
c2abb45f
기능: 챔피언 별 전적 크롤링
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
app.js
app.js
View file @
a7ba45a
...
...
@@ -109,7 +109,35 @@ getHTML()
list
:
competitionList
}
//#endregion
//#region 챔피언 별 전적
var
tr
=
$
(
'div.scriptorium'
).
children
(
'div.listTable'
).
eq
(
4
).
find
(
'table tbody'
).
children
();
var
championData
=
{};
tr
.
each
(
function
(
i
,
elem
)
{
var
td
=
$
(
this
).
children
();
var
championName
=
td
.
eq
(
0
).
text
();
championData
[
championName
]
=
{
name
:
championName
,
totalGamePlay
:
td
.
eq
(
1
).
text
(),
totalWin
:
td
.
eq
(
2
).
text
(),
totalLose
:
td
.
eq
(
3
).
text
(),
winRate
:
td
.
eq
(
4
).
text
(),
totalKill
:
td
.
eq
(
5
).
text
(),
totalDeath
:
td
.
eq
(
6
).
text
(),
totalAssist
:
td
.
eq
(
7
).
text
(),
killPerMatch
:
td
.
eq
(
8
).
text
(),
deathPerMatch
:
td
.
eq
(
9
).
text
(),
assistPerMatch
:
td
.
eq
(
10
).
text
(),
kDA
:
td
.
eq
(
11
).
text
(),
kP
:
td
.
eq
(
12
).
text
()
}
});
fakerData
[
'champions'
]
=
championData
;
//#endregion
return
fakerData
;
})
.
then
(
res
=>
console
.
log
(
res
));
...
...
Please
register
or
login
to post a comment