You are here: Re: Scan web pages and compose summary « PHP Programming Language « IT news, forums, messages
Re: Scan web pages and compose summary

Posted by Jensen Somers on 01/18/08 10:51

Hello,

solk wrote:
> Hello.
>
> I am looking for a way to read html file and create
> a short summary (like that shows in google results for example)
> which ought to be the first few lines of welcome text or so.
>
> Does any got any idea on how to do this? (I searched allot,
> but all I found was simply extracting meta tags).
>
> Thanks

I can recommend Snoopy (http://snoopy.sourceforge.net/). It is able to
retrieve an entire web page, follow links and so on. The result will be
the HTML source output you can see if you do a view source in your web
browser. From there you can strip HTML tags, use substr() to jump to
certain sections in the source (eg: jump to right after the body tag,
remove all HTML tags and save the text output).

- Jensen

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация