Click here to Skip to main content
16,011,170 members

Comments by triXerr (Top 10 by date)

triXerr 12-Nov-13 10:41am View    
Looks like I am not able to complete it. I dont know how to work with JS in C#, call JS and download that data.
Anyway Thank you for help.
triXerr 11-Nov-13 14:06pm View    
I thing I found nescessary sript. It is probably this: http://worldoftanks.eu/static/3.15.0.4/clans/js/helper_members.js
So now I dont know how to call this sript for recive data.
triXerr 11-Nov-13 12:41pm View    
There is code which I using HttpWebRequest
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://worldoftanks.eu/community/clans/500027296-BERU/");
request.Method = "GET";
request.KeepAlive = true;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Stream stream = response.GetResponseStream();
var encoding = new System.Text.UTF8Encoding();
StreamReader sr = new StreamReader(stream, encoding, true);
StreamWriter writer = new StreamWriter("Page.html");
writer.Write(sr.ReadToEnd());
sr.Close();
writer.Close();

And still data are not in saved Page.html
I do not know what I am doing wrong
triXerr 11-Nov-13 11:23am View    
This is my code:
WebBrowser wb = new WebBrowser();
wb.Navigate("http://worldoftanks.eu/community/clans/500027296-BERU/");
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_DocumentCompleted);

private void wb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
WebBrowser wb = (WebBrowser)sender;
StreamWriter sw = new StreamWriter("Page.html");
sw.Write(wb.DocumentText);
sw.Flush();
sw.Close();
}
And in saved Page.html, are not filled data what I want. - that is a problem.
triXerr 11-Nov-13 5:44am View    
That is exactly what I want, but maybe I dont understand... How I could extract that names from HTML file, when in saved HTML file, table are not filled ?