阪急の時刻表を出力した

阪急の時刻表がデータで欲しくなったので阪急の公式HPから出力した

こちらのページでchromeのdevtools > Console で以下を実行

const timeList = []
const row = document.querySelectorAll("table.time tr")
row.forEach(r=>{
  const hour = t.querySelector("th").innerText;
  const minutesList = r.querySelectorAll("td .num")
  minutesList.forEach(m=>{
    timeList.push(`${hour}:${m.innerText}`)
  })
})

console.log(timeList.join("\n"))
tech 

See also