title: Returning HTML body from Nightmare.js
body: <p>I'm  currently working on some scraping with <code>cheerio</code> and <code>nightmare</code>. The reason why I'm using both and not just <code>cheerio</code> is because I have to manipulate the site to get to the part that I want to scrape and I found nightmare very good at doing those scripts. </p>
  
  <p>So, right now I'm using <code>nightmare</code> to get until the part that the info that I need is displayed. After that, on the <code>evaluate()</code> I'm trying to somehow return the current <code>html</code> to then pass it to <code>cheerio</code> to do the scrape. The problem is that I don't know how to retrieve the html from the <code>document</code> object. Is there is a property from the <code>document</code> thats returns the full body?</p>
  
  <p>Here is what I'm trying to do:</p>
  
  <pre><code>var Nightmare = require('nightmare');
  var nightmare = Nightmare({show:true})
  var express = require('express');
  var fs = require('fs');
  var request = require('request');
  var cheerio = require('cheerio');
  var app     = express();
  
  var urlWeb = "url";
  var selectCity = "#ddl_city"
  
  nightmare
  .goto(urlWeb)
  .wait(selectCity)
  .select('#ddl_city', '19')
  .wait(6000)
  .select('#ddl_theater', '12')
  .wait(1000)
  .click('#btn_enter')
  .wait('#aspnetForm')
  .evaluate(function(){
  
      //here is where I want to return the html body
      return document.html;
  
  
  })
  .then(function(body){
  //loading html body to cheerio
      var $ = cheerio.load(body);
      console.log(body);
  })
  </code></pre>