Skip to content

Instantly share code, notes, and snippets.

@botic
Created July 5, 2020 22:03
Show Gist options
  • Save botic/ee76cc2dd8fbcef2a1d64d46428a9cc3 to your computer and use it in GitHub Desktop.
Save botic/ee76cc2dd8fbcef2a1d64d46428a9cc3 to your computer and use it in GitHub Desktop.
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