0

表示テキストを抽出できるように、結果の Web ページ コンテンツを取得しようとしています。以下のコードを試してみましたが、結果の html ではなく、ソース html が取得されます。

string urlPath = "http://www.cbsnews.com/news/jamar-clark-protests-follow-decision-not-to-file-charges-in-minneapolis-police-shooting/";
WebClient client = new WebClient();
string str = client.DownloadString(urlPath);

str 変数のテキストを Chrome ブラウザーの開発者ツールの html と比較すると、異なる結果が得られます。

任意の推奨事項をいただければ幸いです。

4

2 に答える 2