Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am familiar with extract data from search engines like Google, etc using crawling with C#.

For example i use Regular expression, HttpRequest and HttpResponse and this is a simple example of geeting data from Google

C#
private void GoogleSearch(string _keyword) 
    {
        HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create("http://www.google.com.eg/#q="+_keyword);

        HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();

        StreamReader sr = new StreamReader(httpRes.GetResponseStream());

        string responseText = sr.ReadToEnd();

        Regex mainRegex = new Regex("<li class=" + '"' + "g" + '"' +">.*?</li>");

        MatchCollection matchs = mainRegex.Matches(responseText);

        foreach (Match m in matchs)
        {
            MessageBox.Show(m.Value);
        }
    }


Now, i need to get data from Linkedin search engine, so i should simulate the login to Linkedin before i can make the search.

so can any one help me and tell me what is the mechanism of doing this ?

Thanks
Posted

1 solution

You will need to get a developer account and a "secret" Key from LinkedIn.

Here's an article on logging-in from Windows Forms: [^].

I have not done this myself, and do not know what data you would have programmatic access to once logged-in, but I am sure the information is there on the LinkedIn developer site: [^].
 
Share this answer
 
Comments
Member 10519596 1-Nov-14 16:29pm    
Thank you for your answer, but the bad thing that I don't want to use APIs, i should complete this task using HttpWebRequest, HttpWebResponse, Fiddler and Regex
BillWoodruff 2-Nov-14 6:22am    
Well, okay ... but, would you really want anybody to be able to come along and access your private data, or even your public data, in your LinkedIn account without username or password ?

No, I am not accusing you of wanting to hack LinkeIn: for all I know there may be a legal way to read certain public information on anyone's account ... even though I doubt that. If that's possible, then the LinkedIn Developer site should tell you that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900