title: Algorithm or existing API to clip/summarize article for sharing online (identify title, images and text)?
body: <p>I would like to do something similar to what Facebook is doing when you add / share an article</p>
  
  <p>e.g. by typing a URL of an article / story, Facebook is automatically identifying title image etc.</p>
  
  <p>Is there an existing Algorithm or standard for this? Is there any commercial or open API that does this?</p>
  
  <p>A related SO question <a href="https://stackoverflow.com/questions/4618714/how-to-grab-the-title-images-of-a-link-when-posting-sharing-a-link">How to grab the title + images of a link when posting sharing a link</a>, has a great suggestion to simply find the first <code>&lt;h1&gt;</code> and <code>&lt;img&gt;</code> but I was wondering if there is an API that handles situations where the HTML author is not that friendly (e.g. image is in background, title is not in h1 but in h2 (or using a style class only). I will test how Facebook handles such pages and update the question.</p>