Skip to content

Commit

Permalink
fix: update target couplings
Browse files Browse the repository at this point in the history
  • Loading branch information
sititou70 committed Dec 3, 2023
1 parent 335e5cb commit 6866767
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 323 deletions.
3 changes: 2 additions & 1 deletion scraping/target_couplings/bangdream/getCouplings.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'#article-body > table:nth-of-type(7)',
'#article-body > table:nth-of-type(8)',
'#article-body > table:nth-of-type(9)',
'#article-body > table:nth-of-type(10)',
].forEach((selector) => {
Array.from(document.querySelectorAll(`${selector} tr`))
.map((tr) => Array.from(tr.querySelectorAll('td')))
Expand All @@ -39,5 +40,5 @@
});
});

console.log(JSON.stringify(result));
copy(JSON.stringify(result));
})();
44 changes: 44 additions & 0 deletions scraping/target_couplings/bangdream/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
"characters": [{ "name": "倉田ましろ" }, { "name": "八潮瑠唯" }],
"tags": [{ "name": "るいまし" }]
},
{
"characters": [{ "name": "倉田ましろ" }, { "name": "桐ヶ谷透子" }],
"tags": [{ "name": "透まし" }]
},
{
"characters": [{ "name": "桐ヶ谷透子" }, { "name": "八潮瑠唯" }],
"tags": [{ "name": "とうるい" }]
Expand All @@ -243,10 +247,46 @@
"characters": [{ "name": "椎名立希" }, { "name": "千早愛音" }],
"tags": [{ "name": "たきあの" }]
},
{
"characters": [{ "name": "千早愛音" }, { "name": "長崎そよ" }],
"tags": [{ "name": "あのそよ" }]
},
{
"characters": [{ "name": "高松燈" }, { "name": "椎名立希" }],
"tags": [{ "name": "たきとも" }]
},
{
"characters": [{ "name": "椎名立希" }, { "name": "要楽奈" }],
"tags": [{ "name": "たきらな" }]
},
{
"characters": [{ "name": "椎名立希" }, { "name": "長崎そよ" }],
"tags": [{ "name": "たきそよ" }]
},
{
"characters": [{ "name": "高松燈" }, { "name": "長崎そよ" }],
"tags": [{ "name": "ともそよ" }]
},
{
"characters": [{ "name": "高松燈" }, { "name": "要楽奈" }],
"tags": [{ "name": "ともらな" }]
},
{
"characters": [{ "name": "要楽奈" }, { "name": "長崎そよ" }],
"tags": [{ "name": "らなそよ" }]
},
{
"characters": [{ "name": "若葉睦" }, { "name": "豊川祥子" }],
"tags": [{ "name": "むつさき" }]
},
{
"characters": [{ "name": "三角初華" }, { "name": "豊川祥子" }],
"tags": [{ "name": "ういさき" }]
},
{
"characters": [{ "name": "祐天寺にゃむ" }, { "name": "豊川祥子" }],
"tags": [{ "name": "にゃむさき" }]
},
{
"characters": [{ "name": "氷川日菜" }, { "name": "氷川紗夜" }],
"tags": [{ "name": "さよひな" }, { "name": "氷川姉妹" }]
Expand Down Expand Up @@ -383,6 +423,10 @@
"characters": [{ "name": "氷川紗夜" }, { "name": "奥沢美咲" }],
"tags": [{ "name": "みささよ" }]
},
{
"characters": [{ "name": "白金燐子" }, { "name": "八潮瑠唯" }],
"tags": [{ "name": "りんるい" }, { "name": "るいりん" }]
},
{
"characters": [{ "name": "和奏レイ" }, { "name": "花園たえ" }],
"tags": [{ "name": "レイたえ" }, { "name": "たえレイ" }]
Expand Down
2 changes: 1 addition & 1 deletion scraping/target_couplings/btr/getCouplings.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
const target_couplings = getCouplingsFromTable(
document.querySelector('#article-body > table:nth-of-type(1)')
);
console.log(JSON.stringify(target_couplings));
copy(JSON.stringify(target_couplings));
})();
11 changes: 11 additions & 0 deletions scraping/target_couplings/btr/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,16 @@
{
"tags": [{ "name": "星やみ" }],
"characters": [{ "name": "伊地知星歌" }, { "name": "ぽいずん♡やみ" }]
},
{
"tags": [{ "name": "ふーはー" }],
"characters": [{ "name": "本城楓子" }, { "name": "長谷川あくび" }]
},
{
"tags": [{ "name": "リョウ恵恋" }],
"characters": [
{ "name": "山田リョウ(ぼっち・ざ・ろっく!)" },
{ "name": "日向恵恋奈" }
]
}
]
2 changes: 1 addition & 1 deletion scraping/target_couplings/deremas/getCouplings.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@
),
];

console.log(JSON.stringify(couplings));
copy(JSON.stringify(couplings));
})();
12 changes: 4 additions & 8 deletions scraping/target_couplings/deremas/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,6 @@
"characters": [{ "name": "水本ゆかり" }, { "name": "小早川紗枝" }],
"tags": [{ "name": "ゆかさえ" }, { "name": "Rêve Pur" }]
},
{
"tags": [{ "name": "あきあか" }, { "name": "辻砂" }],
"characters": [{ "name": "砂塚あきら" }, { "name": "辻野あかり" }]
},
{
"tags": [{ "name": "アキレイナ" }],
"characters": [{ "name": "池袋晶葉" }, { "name": "小関麗奈" }]
Expand Down Expand Up @@ -641,6 +637,10 @@
"tags": [{ "name": "拓鈴" }],
"characters": [{ "name": "向井拓海" }, { "name": "道明寺歌鈴" }]
},
{
"tags": [{ "name": "辻砂" }, { "name": "あきあか" }],
"characters": [{ "name": "砂塚あきら" }, { "name": "辻野あかり" }]
},
{
"tags": [{ "name": "デレパ組" }],
"characters": [{ "name": "本田未央" }, { "name": "多田李衣菜" }]
Expand Down Expand Up @@ -1157,10 +1157,6 @@
"tags": [{ "name": "ちとりさ" }],
"characters": [{ "name": "黒埼ちとせ" }, { "name": "的場梨沙" }]
},
{
"tags": [{ "name": "辻砂" }, { "name": "あきあか" }],
"characters": [{ "name": "砂塚あきら" }, { "name": "辻野あかり" }]
},
{
"tags": [{ "name": "とときのこ" }],
"characters": [{ "name": "十時愛梨" }, { "name": "星輝子" }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
.map((x) => getCharactersFromTable(x))
.reduce((s, x) => [...s, ...x]);

console.log(JSON.stringify(characters));
copy(JSON.stringify(characters));
})();
Loading

0 comments on commit 6866767

Please sign in to comment.