user2000 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am wondering if it is possible to grab the contact list of msn messenger and yahoo messenger. I have tried using various cpan modules but they dont seem to work. I just need the email ids from the msn messenger/yahoo messenger. Update: I have written the code below, but the final part is not working, I dont know why. Please help. Thankyou Thankyou very much, Anant
  • Comment on Using perl to grab msn and yahoo contacts

Replies are listed 'Best First'.
Re: Using perl to grab msn and yahoo contacts
by erroneousBollock (Curate) on Sep 07, 2007 at 02:23 UTC
    I am wondering if it is possible to grab the contact list of msn messenger and yahoo messenger.
    From where exactly? The MSN and Yahoo Messenger protocols? from some web-pages? Please be more specific.

    I'd wager there are modules that talk these protocols, but it sounds like you have something more simple in mind.

    I have tried using various cpan modules but they dont seem to work.
    Which modules? Exactly how did they not "seem to work" ?

    I just need the email ids from the msn messenger/yahoo messenger.
    Well, as dubious as this sounds (for example most trojans/viruses do this to propagate) ... can I ask why?

    Perhaps there's another way to attack your problem.

    -David

      Hi, Thank you for your reply. I am basically trying to run a site where users can add their existing friends from msn messenger/yahoo messenger. So that is the reason why I want to extract the email ids from these 2 protocols. I tried the POE component MSN, it dint seem to work. All I want is to accept username and password then simply get the email ids from the protocol. If you can tell me the code using module also, I do not mind. I do not mind installing any module available. Thank you very much, Anant
Re: Using perl to grab msn and yahoo contacts
by Gangabass (Vicar) on Sep 07, 2007 at 06:18 UTC

    Did you try Net::Msmgr and POE::Component::Client::MSN?

      Hi, I installed POE Component Client MSN, but was unable to get the script to work. Also in Net Msmgr I could not find any function that would list all my friends on the list. Thank you, Anant
        I have written the following code. Only problem is that in the final part, it doesnot give output i.e. for this line: snd_msg( $socket, 'USR 4 TWN S t='.$final."\r\n" ); print (get_msg( $socket )."\n\n"); i dont know why but it just doesnt print anything and the perl interpreter keeps running. i dont know why. the rest all is right. All the code i have written as per the guidelines from: http://www.hypothetic.org/docs/msn/notification/authentication.php Thank you very much, Anant