On Tue, Apr 8, 2008 at 1:10 PM, Julian Bond <[EMAIL PROTECTED]> wrote: > I need some advice about reading rel="me" tags in arbitrary web pages using > PHP. I'm intending to use this to help build a lifestream style function. > The basic intent is to cut down the amount of data entry the user has to do. > When they give me a MyBlogLog, Friendfeed, Plaxo Pulse page that has lists > of links to their profile pages I should be able to avoid having to ask them > for all of them again. So:- > > - User gives me a URL for one of their profile pages > - Use Curl to collect the source > - Parse the source looking for links with a rel="me" > - Extract an array of Link URL - Link Text > - Do something useful with the array. (???? followed by Profit!)
Have a look at the Google Social Graph API [1] - it doesn't query things 'live', but because it's Google they can return all the results in one response to your query, and it saves you spidering the site yourself and worrying about all the complexity that would involve. Alternatively, if you want to parse uFs in PHP, I believe hKit by Drew McLellan [2] may have some @rel=me support? -Ciaran McNulty [1] http://code.google.com/apis/socialgraph/ [2] http://code.google.com/p/hkit/ _______________________________________________ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss