16,011,170 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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 ?
triXerr
10-Nov-13 16:45pm
View
Okay. I will try to explain.
I want create application which will be checking every hour teamsepeak 3 server (that I have already completed) and compare it with Users, which are true members of clan. These Users are displayed on Web Page. I do not know how if there easier way for that
triXerr
10-Nov-13 15:35pm
View
So, if I understood correctly, it is possible save that data somehow via WebBrowser in C#?
there is a method ShowSaveAsDialog, that is doing exactly what I need, but I cant save it without that dialog. Is there some way to bypass and save it directly ?
triXerr
10-Nov-13 14:19pm
View
If it is correct... filling that table wich contains User Name, etc. doing this script: http://worldoftanks.eu/static/3.15.0.4/clans/js/helper_members.js
But I'm not able to analyze it, because I never work with JavaScript or whatever is it.
triXerr
10-Nov-13 13:15pm
View
Yes, When I will Navigate that page in WebBrowser, then I can see that data.
triXerr
10-Nov-13 12:54pm
View
Via WebClient or HttpWebRequest I cant download necessary data. Because in downloaded string are not that data (User Names) from Web Page :(
Show More