An example of PHP code to find main content of an article in the HTML and the most relevant image. Read more in original article http://yarcheeck.cz/how-to-get-the-most-relevant-image-from-page-php/