title: script to automate exporting confluence spaces to html
body: <p>So, here's the problem I'm having. I need to export all of the spaces on my company's confluence page to HTML on a regular basis. I'm currently looking at using bash's curl and wget commands to get what I'm looking for.</p>
  
  <p>What I'm trying to do:</p>
  
  <p>-Log onto confluence using username:password....(DONE using: 
  curl username:password url)</p>
  
  <p>-Export the space to html, wait the 15-30 seconds to generate the link to download the zip file...(not done)</p>
  
  <p>-Unzip to chosen directory and remove zip file (DONE using unzip command)</p>
  
  <p>The company I work for won't let me download modules for bash nor add-ons to confluence that would make my life easier. Am I barking up the wrong tree with BASH altogether? The research I've been doing on this has turned up very little.</p>
  
  <p>tl;dr: I need a bash command that will (1) log on to a URL, (2) Click a button to navigate to the next page, (3) Wait for said page to generate the link and (4) Click that link to download the file.</p>