Short snippet summarizing a webpage?

Posted by Legend on Stack Overflow See other posts from Stack Overflow or by Legend
Published on 2011-01-09T23:38:38Z Indexed on 2011/01/09 23:53 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

Is there a clean way of grabbing the first few lines of a given link that summarizes that link? I have seen this being done in some online bookmarking applications but have no clue on how they were implemented. For instance, if I give this link, I should be able to get a summary which is roughly like:

I'll admit it, I was intimidated by MapReduce. I'd tried to read explanations of it, but even the wonderful Joel Spolsky left me scratching my head. So I plowed ahead trying to build decent pipelines to process massive amounts of data

Nothing complex at first sight but grabbing these is the challenging part. Just the first few lines of the actual post should be fine. Should I just use a raw approach of grabbing the entire html and parsing the meta tags or something fancy like that (which obviously and unfortunately is not generalizable to every link out there) or is there a smarter way to achieve this? Any suggestions?

Update:

I just found InstaPaper do this but am not sure if it is getting the information from RSS feeds or some other way.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript