Skip to content

Instantly share code, notes, and snippets.

@porty
Last active December 14, 2021 03:43
Show Gist options
  • Save porty/ba1af0e17607321381fb590819aee9ef to your computer and use it in GitHub Desktop.
Save porty/ba1af0e17607321381fb590819aee9ef to your computer and use it in GitHub Desktop.
// WIP
// build a list of showsa
let shows = [];
document.querySelectorAll(".mix.detail-information").forEach(div => {
let show = {
title: div.querySelector(".show-title").innerText,
soldOut: false
};
if (div.querySelector(".event-data").querySelector(".soldout")) {
show.soldOut = true;
}
shows.push(show);
});
// TODO: extract supporting acts and/or "special guests"
// TODO: extract dates and location
// TODO: filter out sold out shows
// TODO: present info somehow
console.log(shows);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment