Page 1 of 1

how does this site strip the page down

Posted: Thu Mar 01, 2007 10:59 am
by realtime158
If you go here

http://co.mments.com/

Enter the following url to track
http://torrentfreak.com/interview-with- ... ittorrent/

Click track

Now you will see it added to the page. How do they strip the page to display it like that

Please let me know if there are any examples out there or already done code to do this

Thanks..

Re: how does this site strip the page down

Posted: Thu Mar 01, 2007 11:04 am
by visitor-Q
realtime158 wrote:If you go here

http://co.mments.com/

Enter the following url to track
http://torrentfreak.com/interview-with- ... ittorrent/

Click track

Now you will see it added to the page. How do they strip the page to display it like that

Please let me know if there are any examples out there or already done code to do this

Thanks..
i'm sure they know what format it is displayed in... and i'm sure they're masters of regex.

Posted: Thu Mar 01, 2007 11:09 am
by PrObLeM
ah, the magic of rss feeds...

http://feeds.feedburner.com/Torrentfreak/

So has anybody seen anywhere

Posted: Thu Mar 01, 2007 12:04 pm
by realtime158
So has anybody seen anywhere any code to do this. At least strip the page down

YOu can use

preg_replace("#^.*<body[^>]*>(.*)</body>.*$#si", "\\1", $html);