If you are a social media website developer , sometimes you might search for grabbing contacts from a particular email account if the password is given. I also did the same.In most of the cases it did not work properly. But recently i got a contact grabber from phpclasses.org which works perfectly on Gmail, Hotmail, Rediff, Yahoo, Orkut, MySpace, Indiatimes, Linkedin , AOL and lycos
But the zip file i got is not well arranged, so it shows some errors . I arranged it in proper way and uploaded here:
(Under GNU Public License)
Using this php code , you can export the email contacts as csv file.
Here is the actual source website : http://www.phpclasses.org/browse/package/3895.html