0
我使用C#和敏捷包刮一個網站,但結果我變得不同於我在螢火蟲中看到的。我想這是因爲該網站正在使用一些Ajax。試圖在C上刮敏捷網頁#
// The HtmlWeb class is a utility class to get the HTML over HTTP
HtmlWeb htmlWeb = new HtmlWeb();
// Creates an HtmlDocument object from an URL
HtmlAgilityPack.HtmlDocument document = htmlWeb.Load("http://www.saxobank.com/market-insight/saxotools/forex-open-positions");
// Targets a specific node
HtmlNode someNode = document.GetElementbyId("href");
// If there is no node with that Id, someNode will be null
richTextBox1.Text = document.DocumentNode.OuterHtml;
有人可以告訴代碼如何正確地做到這一點導致我回來只是純html。我尋找的是一個
div id= "ctl00_MainContent_PositionRatios1_canvasContainer"
任何想法?