Created
October 2, 2022 07:08
-
-
Save 330k/0fab93effbff848561e8dc5c0395742e to your computer and use it in GitHub Desktop.
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
// BRM名 | |
console.log([...document.querySelectorAll("h3")].filter(e=>e.textContent.match(/BRM\d+.+/)).map(e=>e.textContent.replace(/・.*$/,"")).join("\n")) | |
// 距離 | |
console.log([...document.querySelectorAll("h3")].filter(e=>e.textContent.match(/BRM\d+.+/)).map(e=>e.textContent.replace(/.*?(\d+)km.*$/,"$1")).join("\n")) | |
// BRM開催日時 | |
console.log([...document.querySelectorAll("h3")].filter(e=>e.textContent.match(/BRM\d+.+/)).map(e=>e.textContent.replace(/BRM(\d+)(\d\d).*$/,"2023/$1/$2")).join("\n")) | |
// エントリー期間 | |
console.log([...document.querySelectorAll("h3")].filter(e=>e.textContent.match(/BRM\d+.+/)).map(e=>e.parentNode.querySelector("p[class='fntS']").textContent).join("\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment