Yahoo Contact list grabber in ASP.Net

Discussion in 'C#' started by shaileshk, May 23, 2007.

  1. #1
    Hi,

    I need help to develop yahoo contct list grabber in asp.net.

    Please help .

    Regards,
    Shailesh
     
    shaileshk, May 23, 2007 IP
  2. TasteOfPower

    TasteOfPower Peon

    Messages:
    572
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok. ... ....
     
    TasteOfPower, May 24, 2007 IP
  3. turiel

    turiel Peon

    Messages:
    148
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    turiel, May 24, 2007 IP
  4. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #4
    have ASP.NET use WebClient to download html
     
    ccoonen, May 25, 2007 IP
  5. slawek

    slawek Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There is a great option in address book, export to csv file.
     
    slawek, Jun 1, 2007 IP
  6. nemesisdan

    nemesisdan Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6
    need one in classic asp, not php or asp.net

    Can anyone help??
     
    nemesisdan, Oct 26, 2007 IP
  7. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why would you use any form of screen grabbing given that there are API's to do this?

    We have developed a component for viral campaign work but it is .Net
     
    AstarothSolutions, Oct 26, 2007 IP
  8. ramix

    ramix Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi, i s there any tips for developing such a script
    i also need it in asp, i looked arround but no such scripts in asp.
    so i want to develop one like that, how i should start doing that?
    i tried to understand the php scripts but i couldn't.
     
    ramix, Nov 11, 2007 IP
  9. sceptic81

    sceptic81 Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi, Im new to this forum. I need to build a contact list grabber for yahoo,hotmail and gmail. Is there a way i can do it.

    To convert from php to asp seems impossible as the code in php is quite complited, not that im not willing to try.I will.

    Maybe there is a better way of doing it.Any suggestion pls. Im running out of idea. Thanks for any help.
     
    sceptic81, Dec 17, 2007 IP
  10. shaileshk

    shaileshk Well-Known Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #10
    Hi All,
    Please find the ASP. Yahoo Contact list grabber code


    
    <%
     
    txtusername=youremail@yahoo.com 'Enter your yahoo Email Address
    txtPassword=YourPassword  ' Enter your password 
    
    Set oXMLHTTP = Server.CreateObject("WinHTTP.WinHTTPRequest.5.1")
    oXMLHTTP.open "POST", "http://login.yahoo.com/config/login?", False
    oXMLHTTP.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
    oXMLHTTP.send "src=&.tries=5&.bypass=&.partner=&.md5=&.hash=&.intl=us&.tries=1&.challenge=ydKtXwwZarNeRMeAufKa56.oJqaO&.u=dmvmk8p231bpr&.yplus=&.emailCode=&pkg=&stepid=&.ev=&hasMsgr=0&.v=0&.chkP=N&.last=&.done=http://address.mail.yahoo.com/&login="& txtusername &"&passwd="& txtPassword&"" 'postar data
    'Response.Write "Resultat: " & oXMLHTTP.responsetext  
    
    
    if(InStr(1, oXMLHTTP.responsetext, "Invalid ID or password", 1)>0) then
     
    	Response.Redirect("index.asp?login=fail&type=yahoo")
    end if
    if(InStr(1, oXMLHTTP.responsetext, "This ID is not yet taken", 1)>0) then
     
    	Response.Redirect("index.asp?login=notvaludid&type=yahoo")
    end if
    
    
    
    oXMLHTTP.open "POST", "http://address.mail.yahoo.com/", False
    oXMLHTTP.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
    
    oXMLHTTP.send ".crumb=edNtmLWLP1J&VPC=import_export&A=B&submit[action_export_outlook]=Export Now"
    
    'Response.Write "Resultat: " & oXMLHTTP.responsetext 
    
    
    strAryWords = Split(oXMLHTTP.responsetext, ",") 
    j=1
    flglogin=false
    For i = 0 to Ubound(strAryWords)
    	'Response.Write i & " = " & strAryWords(i) & "<BR>"
    	
    	'Response.Write(InStr(1, strAryWords(i), "@", 1))
    
    if(InStr(1, strAryWords(i), "@", 1)>0) then
    
    email=replace(strAryWords(i),"""","")
    flglogin=true
    %> 
    <tr><td><input type="checkbox" name="chkemail" value="<%=email%>"></td><td class="details">
    	<%
    	   Response.Write(email)
    	 j=j+1
    	 %>
    	 </td></tr>
    
    	 <%
    	 end if
    Next
    
    if flglogin=false then
    Response.Redirect("index.asp?login=fail&type=yahoo")
    end if
    %>
    
    Code (markup):
     
    shaileshk, Dec 20, 2007 IP
  11. ramix

    ramix Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i'm running this code but it brings me a yahoo page with error in loading contact list.
     
    ramix, Feb 12, 2008 IP
  12. Yankee85

    Yankee85 Peon

    Messages:
    1,067
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Why don't you use Yahoo's API?
     
    Yankee85, Apr 25, 2008 IP
  13. kenneth2332000

    kenneth2332000 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I can't find yahoo address book API code in C#. Please help!
     
    kenneth2332000, Feb 8, 2010 IP
  14. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #14
    GAdsense, Mar 17, 2010 IP
  15. john.michael.kane.kane

    john.michael.kane.kane Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    use WebClient to download have ASP.NET
     
    john.michael.kane.kane, Mar 29, 2010 IP
  16. nolvar

    nolvar Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #16
    Hi, Im new to this forum. I need to build a contact list grabber for yahoo,hotmail and gmail. Is there a way i can do it.

    To convert from php to asp seems impossible as the code in php is quite complited, not that im not willing to try.I will.

    Maybe there is a better way of doing it.Any suggestion pls. Im running out of idea. Thanks for any help.
     
    nolvar, Apr 12, 2010 IP
  17. navinleon

    navinleon Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Here is a place where you can get gmail,yahoo, msn, aol, linkedin, myspace, hotmail and so on
    An contact grabber in asp.net
    http://www.stescodes.com/grabcontacts.aspx
    experience the demo too
     
    navinleon, May 30, 2010 IP