title: Get price and images of main content of defined URL with PHP
body: <p>First of, let me say that I'm a Frontend engineer, with limited knowledge to PHP. I can make  simple webservices to complete my projects, but I'm not near calling myself a Backend developer. :-)</p>
  
  <p>I'm making a website in my spare time, where users can enter a URL of a product and the service, made in php, returns the 5 largest images on the page, sorted by size. The largest image is, usually, the correct image. Mark this as half done.. :-)</p>
  
  <p>However, now I need to get the price that match the product, not just any price on the page. A lot of webshops lists alternative or related products with prices as well, so there could be numerous instances. I could bubble up the Dom three and match the first price that's inside the same parent as the selected image. But is that the way to go?</p>
  
  <p>How do I track down the main content of a page, so my image getter function is more precise, and the price is correct? As I don't know the markup, how would I recognize the main content?</p>
  
  <p>As for getting prices, I tried getting all elements with indexOf price in class, which works in 90% of the time. But that gives me, as mentioned before, all prices - not THE price.</p>
  
  <p>So, long story short. How do I: 
  1. recognize main content of a webpage, without knowing it's markup? 
  2. Or find the price that match the image selected as the right one?</p>