Skip to content

How to create Web scraper with login

EA B

Asked Sep 16, 2010, 11:06 AM EDT3 answers
Share
LinkedInX
Hi

I want to create a web scraper with login using C# desktop app.

Thanks

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    public class X{
       //use webclient credential to set the authorization logic and use the method bellow
    public string ScreenScrape(string url)
    {
     using (System.Net.WebClient client = new System.Net.WebClient())
     {
      // set properties of the client
      return client.DownloadString(url);
     }
    }

    }
     
     
    0
  • 0
    where I will add the username and password to a particular website?
    0
  • Bechir Bejaoui
    0
    OK
    Are you using ASP.NET or other platform?
    0