Forum Moderators: coopster

Message Too Old, No Replies

reading url like facebook

reading url like facebook

         

dado_eyad

3:47 pm on Dec 23, 2009 (gmt 0)

10+ Year Member



does any one have an idea about how Facebook read URL and
extract title and a text from the page.
I got the title but the text?

impact

2:18 am on Dec 25, 2009 (gmt 0)

10+ Year Member



I am not very sure but i guess, store the entire content into an array. Remove every thing before and after <body></body> and then parse the content.

FourDegreez

6:20 pm on Dec 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Probably grabs the content inside <body></body> as impact said, then does something like strip_tags() to just get the text, then takes the first X characters. Could be more sophisticated than that, if they are looking for text inside certain tags and ignoring it in others.