Last active
          December 14, 2021 03:43 
        
      - 
      
- 
        Save porty/ba1af0e17607321381fb590819aee9ef to your computer and use it in GitHub Desktop. 
    Make https://apeconcerts.com/event-listing/ easy to read
  
        
  
    
      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
    
  
  
    
  | // 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