I'm trying to get html site ( https://site.com/../page.html?lang=en ) to read the data. The structure is approximately as follows:
<div class="class1"> <div class="1.2"> <div class="class2"> <div class="2.2"> <div> **1 JUNE**</div> <div class="class3"> <div class="3.2"> Wrote function:
private static string GetHtml(string url) { try { var req = (HttpWebRequest)WebRequest.Create(url); req.AllowAutoRedirect = false; req.Method = "GET"; req.UseDefaultCredentials = true; req.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"; req.Referer = "https://www.google.com/"; using (StreamReader reader = new StreamReader(req.GetResponse().GetResponseStream())) { return reader.ReadToEnd(); } } catch (Exception ex) { return ex.Message; } } But the problem is that only the site template is returned, without any data, for example, as in this case instead of
<div> **1 JUNE**</div> it turns out something like:
<div> {{product.Date | date:'dd'}} {{AD.Resource(product.Date | date:'MMM')}} {{product.Date | date:'HH:mm'}}</div> However, if I download via "Download as", using chrome, the data is loaded, not the template.