At one point it was possible to use scripts like libgmail and gmail.py (can't post more than one hyperlink) to export mail from Gmail accounts. Both of those seem to not work anymore — I can't even log in with them. I assume it's because there's been some changes in Gmail. Is there still any way to do this?
Asked
Active
Viewed 1,115 times
6
-
why can't you post more than one hyperlink? – Nathan Fellman Aug 28 '10 at 18:54
-
2@Nathan - New accounts are probably limited to one link to discourage spam – Greg Aug 28 '10 at 18:56
-
Instead of using the wrappers, I would suggest that you directly use Google Data API. Google has a page that details, how you can do it. http://code.google.com/apis/gdata/articles/python_client_lib.html And also look at the following : http://code.google.com/p/gdata-python-client/ This works too – pyfunc Aug 28 '10 at 18:59
-
@pyfunc - Is Gmail one of the services supported by the Google data API? I don't see it on this list: http://code.google.com/apis/gdata/docs/directory.html – Greg Aug 28 '10 at 19:06
2 Answers
7
Gmail supports IMAP and POP, which are common protocols for accessing email. You should be able to use use any working IMAP or POP library for Python to download your email. If you want tag/folder information, you'll need to stick to IMAP.

Greg
- 23,155
- 11
- 57
- 79
1
As far as I know neither libgmail
nor gmail.py
are compatible with the current version of Gmail. I use IMAP to download mails from gmail. Python's imaplib
module is quite useful for this.
This answer (disclaimer: my answer) to a related question might give you some clues.

Community
- 1
- 1

Manoj Govindan
- 72,339
- 21
- 134
- 141