Scraping GMAIL for contacts
May 3, 2007 – 6:58 pmIn our previous posts we’ve looked at how to scrape both Yahoo! and AOL webmail for a list of contacts given a username and password. This technique can be critical in growing your user base by allowing your users to invite many friends in one quick and easy step. Our next site that we supported is GMail.
However, for GMail we did not use our JScrape API but rather just used the G4J API. It was extremely easy to use and to incorporate into our framework. I recommend downloading it and testing it, it should only take a few short lines of code, here is what I did:
GMConnector gm = new GMConnector(userID,passwd,1);
gm.connect();
GMContact [] data = gm.getContact(1, “”);
The last site we will cover is Hotmail which was probably the most challenging of the 4 sites.


2 Responses to “Scraping GMAIL for contacts”
Hi, Can you please verify if Email Import for Gmail is working for your website theSuggestR.com ?
I tried importing Gmail contacts and I was passing correct username and password but still getting message that username or password is incorrect.
There seems some problem, please have a look on it.
By raghu on Jul 12, 2008
theSUGGESTR.com should be updated and now properly importing contacts.
It seems like the G4J API is now outdated. Look for a new post on how we now implemented the import shortly.
By fmapap on Jul 14, 2008