title: Web Scraping using simplehtmldom on multiple sites
body: <p>I am using simplehtmldom parser for my recent web scraping project and the project is actually building a price comparing website build with CodeIgniter. The website has to fetch product names, description and price from different shopping websites. Here is my code:</p>
  
  <pre><code>$this-&gt;dom-&gt;load_file('http://www.site1.com');
  $price1 = $this-&gt;dom-&gt;find("span[itemprop=price]");
  
  $this-&gt;dom-&gt;load_file('http://www.site2.com');
  $price2 = $this-&gt;dom-&gt;find("div.price");
  
  $this-&gt;dom-&gt;load_file('http://www.site3.com');
  $price3 = $this-&gt;dom-&gt;find("div.priceBold");
  
  $this-&gt;dom-&gt;load_file('http://www.site4.com');
  $price4 = $this-&gt;dom-&gt;find("span.fntBlack");
  
  $this-&gt;dom-&gt;load_file('http://www.site5.com');
  $price5 = $this-&gt;dom-&gt;find("div.price");
  </code></pre>
  
  <p>The above code takes approximately 15-20 seconds to load the result into the screen. When I try with only one site, it just takes 2 seconds. This is how the simplehtmldom works with multiple domains? Or is there a way to optimize it?</p>