Created
July 5, 2020 22:03
-
-
Save botic/ee76cc2dd8fbcef2a1d64d46428a9cc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const rows = document.querySelectorAll("#pmoveswraper .row"); | |
const events = {}; | |
for (const row of rows) { | |
const date = row.querySelector(".date .kd").innerText.split("."); | |
const loc3 = row.querySelector(".locitem3") | |
const locItems = loc3.querySelectorAll(".item"); | |
const program = []; | |
for (const item of locItems) { program.push(item.innerText); } | |
events[`2020-${date[1]}-${date[0]}`] = program.join("\n\n"); | |
} | |
console.log(JSON.stringify(events, null, 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment