4

I'd like to be able to get all my Google chat logs so that I can use them for training a chat bot type of thing.

I am aware of the limitations that have been imposed by Google so that chats cannot be simply downloaded through IMAP. I'm looking for workarounds.

3
  • This isn't really programming related.
    – senfo
    Dec 31, 2008 at 4:52
  • 1
    i need to write a program that will access google mail and download data to be fed into another program. i'm not sure why this wouldn't be considered programming related.
    – carrier
    Dec 31, 2008 at 15:45
  • Just wondering: Have you done any work on this?
    – WhyNotHugo
    Apr 9, 2010 at 18:43

6 Answers 6

7

As of September 2011, Google removed the restriction on downloading chats. Google now allows export of chatlogs using IMAP.

1
  • 3
    I wrote a quick python script that downloads all of your chat transcripts using IMAP and saves them into a directory on your filesystem. github.com/paykroyd/chats Dec 9, 2012 at 0:31
2

It's not possible to download the chat logs unless they're attached to an email conversation - maybe you could fwd all of the logs that are held in your 'chats' folder and then download the conversations over IMAP or POP?

2

I recently had to do the same thing and coded a quick ruby script. http://9seats.com/2011/04/archiving-gmail-chat-logs-with-ruby/

1
  • Hi @J.R. , The link is not working. Can you please share the ruby script
    – useranon
    Jan 19, 2022 at 11:09
1

If you're looking to make a program to do this, you could use a greasemonkey script and a local PHP server.
The greasemonkey script would pick up chats as you visit them, parse them, and send them to the local PHP server, which could then dump it to a TXT, SQL, whatever.
Contact me if you want some help, I might be interested in this, though I'll be on holidays the next months :)

0

Take a wander through the Google Talk API. And this may, or may not, help too: GMailAPI

0

If you know how to download a email. You can do the same to chat. Because chats are nothing but an email tagged with label chat. If you see chats, they are actually sent from the person you chatted with to you.

1
  • 1
    Sorry, but they are not in the proper RFC 822(Please correct me if I'm wrong) format.
    – 0fnt
    Jul 10, 2010 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.