title: Google fun facts + angular
body: <p>From my understanding, Google has reacently provided a new search service.
  To access this you simply "google": <b>fun facts</b> or <b>i'm feeling curious</b></p>
  
  <p>But is there a simple way to extract the information since I can't find an API for this?</p>
  
  <p>I was simply trying this with angular 1.6 like this:</p>
  
  <pre><code>function getFunFact(){
      var URL = "https://www.google.com/search?q=fun+facts";
      $http.get(URL)
      .then(function(response){
            console.log(response);
      }).catch(function (e) {
            console.log(e);
      });
  }
  </code></pre>
  
  <p>But I only get the Cross-origin resource sharing (CORS) error. Is there a way to bypass this to access the information via CSS selectors etcetera?</p>
  
  <p><b>Update:</b></p>
  
  <p>The suggested plug-in will work for now.</p>
  
  <p>But is there an easy way to grab the content from the html document response?
  It's just a long string, e.g: </p>
  
  <p>! doctype html  html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="sv" head .................................................................................................. /html></p>
  
  <p>Or is google preventing this?</p>