title: Crawling for only the title of a page
body: <p>I've been looking around the internet hoping that this is possible, I basically need to get just the title of a webpage and nothing else.</p>
  
  <p>web crawlers can take a long time performing tasks because they have to load pages before examinining them, this is inefficient for what I am trying to achieve... here's what I have so far</p>
  
  <p><strong>php code</strong></p>
  
  <pre><code>$url = 'http://www.ebay.com/itm/300702997750#ht_500wt_1156';
  $str = file_get_contents($url);
  $title = ''; 
  
  if(strlen($str)&gt;0){
     preg_match("/\&lt;title\&gt;(.*)\&lt;\/title\&gt;/",$str,$titleArr);
     $title = $titleArr[1];
  }
  </code></pre>
  
  <p>I want to know whether it would be possible to crawl only part of a page (for example the first 2000 characters of page).</p>
  
  <p>Any help would be appreciated, Thanks.</p>