title: How do I open Amazon reviews iframe with Nokogiri?
body: <p>I am able to get the reviews iframe url from <code>Amazon::AWS::ItemSearch</code> but I'm having trouble loading the iframe content into Nokogiri. </p>
  
  <pre><code>iframe_url = "http://www.amazon.com/reviews/iframe?[...snip...]" 
  iframe = Nokogiri::HTML(open(iframe_url))
  </code></pre>
  
  <p>This gives a 403 error:</p>
  
  <pre><code>OpenURI::HTTPError: 403 Forbidden
  </code></pre>
  
  <p>If I paste the url into my browser the page is just blank. However, if I put it in an iframe on my webpage like this the content loads fine:</p>
  
  <pre><code>%iframe{:src =&gt; "http://www.amazon.com/reviews/iframe?[...snip...]"}/
  </code></pre>
  
  <p>I thought of doing something like this:</p>
  
  <pre><code>iframe_url = "http://www.amazon.com/reviews/iframe?[...snip...]" 
  html = "&lt;iframe src = #{iframe_url}&gt;&lt;/iframe&gt;"
  iframe = Nokogiri::HTML(html)
  </code></pre>
  
  <p>but this won't fetch the remote content. How can I do this?</p>