Skip to content

Instantly share code, notes, and snippets.

@eggplants
Created December 29, 2024 16:37
Show Gist options
  • Save eggplants/fa10e21b7c3d30570a33f4c2281e260d to your computer and use it in GitHub Desktop.
Save eggplants/fa10e21b7c3d30570a33f4c2281e260d to your computer and use it in GitHub Desktop.
コミケWebカタログから表に貼る用のサークル一覧TSVを作る
// 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'))
@eggplants
Copy link
Author

desktop

mobile

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