나는 문제가있어 누군가가 나를 도울 수 있다면. html을로드하고 싶습니다.
var webGet = new HtmlWeb();
var doc = webGet.Load(@"https://example.com/search_engine/jobs.cgi?owner=5027409&ownertype=fair&posting_code=612");
htmlagilitypack을 사용하고 있지만 html을로드 할 수 없습니다. 내 로컬 PC에서 HTML을 다운로드하고 거기에서로드됩니다.
많은 감사.
너는 그걸 조금 지나치다. 필요한 것은 :
//using for IDisposable.Dispose()
using (WebClient client = new WebClient())
{
string html = client.DownloadString("http://stackoverflow.com");
//Do something with html then
}