0
this webpageからデータをスクラップしようとしています。C#HttpWebRequestを使用してdhtmlxからHTMLタグを取得できません
これを解決してHTMLタグを取得したり、XMLやJSONを手に入れることができますか?私はそれがgzip以外のものでエンコードされていると思います。ここで
は私のコードです:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.tsetmc.com/Loader.aspx?ParTree=15");
using (Stream stream = request.GetResponse().GetResponseStream())
{
using (StreamReader reader = new StreamReader(stream))
{
string response = reader.ReadToEnd();
}
}
}
}
}
あなたのコードがあなたの望むことをどうやって実行できないのですか? [なぜ誰かが私を助けることができますか?実際の質問ではありませんか?](https://meta.stackoverflow.com/q/284236/354577) – Chris