Open webpage programmatically and retrieve its html contain as a string

后端 未结 4 1754
梦毁少年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 14:53

    Use selenium 2.0 for C#. http://seleniumhq.org/download/

    var driver = new FirefoxDriver();
    driver.Navigate().GoToUrl("http://www.google.com");
    String pageSource = driver.PageSource;
    

提交回复
热议问题