Open webpage programmatically and retrieve its html contain as a string

后端 未结 4 1742
梦毁少年i
梦毁少年i 2021-02-09 14:45

I have a facebook account and I would like to extract my friend\'s photo and its personal detail such as \"Date of birth\", \"Studied at\" and so on. I am able to extract the ad

4条回答
  •  后悔当初
    2021-02-09 15:03

    Try this:

    var html = new WebClient()
                   .DownloadString("the facebook account url goes here");
    

    Also, once you have downloaded the HTML as a string I would highly recommend that you use the Html Agility Pack to parse it.

提交回复
热议问题