?
Solved

Email contacts grabber library?

Posted on 2010-08-20
3
Medium Priority
?
475 Views
Last Modified: 2012-06-21
Hi,

Do you know of any email contacts grabber library in Python?
i.e. The user supplies the username and password of gmail to a site, and the site using a library logons to gmail and parses the contact list and extract the emails so that the user can send invites using the gmail contacts.

Thanks
Jamie

0
Comment
Question by:jamie_lynn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
number1pride earned 2000 total points
ID: 33526948
This library should do it:
http://libgmail.sourceforge.net/

If that does not do it there are many other options here:
http://code.google.com/hosting/
0
 

Author Comment

by:jamie_lynn
ID: 33527205
Hi number1pride,

I was hoping for a library that does all the major emails.
Similar to this, but this library doesn't have python
http://www.rocketdownload.com/scripts/program/yahoo--gmail--hotmail-and-aol-contact-grabber-11523.html

Thanks
Jamie
0
 
LVL 1

Assisted Solution

by:number1pride
number1pride earned 2000 total points
ID: 33548312
Jamie,

You should be able to use the imap library for this, at least for gmail and yahoo.  For hotmail is a little more complicated and not sure if you can use imap for aol.

So i think this should give you a start "imaplib'

Here is an example for gmail:


import imaplib

usr="user@gmail.com"
pwd="yourpassword"

gmail = imaplib.IMAP4_SSL('imap.gmail.com', 993)
gmail.login(usr,pwd)

status, count = gmail.select('Inbox')
print status
status, data = gmail.fetch(count[0], '(UID BODY[TEXT])')

print data[0][1]
gmail.close()
gmail.logout()

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question