Created
December 29, 2024 16:37
-
-
Save eggplants/fa10e21b7c3d30570a33f4c2281e260d to your computer and use it in GitHub Desktop.
コミケWebカタログから表に貼る用のサークル一覧TSVを作る
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://webcatalog-free.circle.ms/User/Favorites?page=1&orderBy=Space | |
// 曜日 - 配置 - サークル名 | |
const haichiLocations = Array.from(document.querySelectorAll(`span[data-bind="text: HaichiStr"]`)).map(e=>`${e.innerText}`) | |
const circleNames = Array.from(document.querySelectorAll(`a[href^="/Circle/"]`)).flatMap(e=>`${e.innerText}` || []) | |
console.assert(haichiLocations.length == circleNames.length) | |
console.log(haichiLocations.map((s, index)=>`${s.replace(' ', '\t')}\t${circleNames[index]}`).join('\n')) |
Author
eggplants
commented
Dec 29, 2024

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment