code: private function getDom($url) {
      $ch = curl_init();
      $timeout = 5;
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
      $dom = curl_exec($ch);
      curl_close($ch);
  
      return $dom;
    }
docs: Get the dom tree of a given url
  
  @param  [type] $url [description]
  @return [string] $dom