This is a short script to download a list of URLs which may have some dynamic content requiring the use of a headless browser tool like CasperJS to wait for content to load before scraping and writing the resulting HTML to a file. You may find these two, other example gists useful as well.
You'll need to install CasperJS; on a Mac that will involve brew install casperjs --devel
(if you don't have Homebrew, you can read how to do so here)
To run the script, you can use casperjs scrape.js --ssl-protocol=any
from the command line. Note that depending on the sites you're scraping, you may also need to use PhantomJS's cookie jar.