Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hello everyone,
I am trying to get the "K/D" value from this page: (which is 0.65 now)
http://ratings.tankionline.com/en/user/dannezoo/

How will I be able to do that using a webbrowser?
I know how to do it with elements with an ID.
I managed to enable javascript now I just need to get those variables.

Help is appreciated.
Thanks.
Posted
Updated 22-Jan-16 2:59am
v2

1 solution

CreaseMonkey can help you with that.

Have a look at:

Greasemonkey :: Add-ons voor Firefox[^]

Alternatives:

Greasemonkey Alternatives and Similar Software - AlternativeTo.net[^]
 
Share this answer
 
Comments
Member 12280934 23-Jan-16 23:57pm    
Hi, thanks for your reply.
I wanted to know how it could be done in VB.NET, without anything to be downloaded.
Thanks.
Member 12001186 24-Jan-16 4:04am    
You asked how this could be done using a webbrowser, hence the suggestion to use GreaseMonkey.

If you want to extract variables from a website using VB.NET use the WebClient class (System.Net.WebClient) or use HTML DOM. There are really a ton of options out there :)
Member 12280934 25-Jan-16 8:57am    
Thanks but I really don't want anything out of VB.NET code like GreaseMonkey.
Could you please give an example code doing this. I couldn't find any help only. I did research.
Member 12001186 11-Feb-16 18:43pm    
This little bit of code extracts the kills from the page and dumps the result in the console (logging).

var kills = document.getElementsByClassName('score')[0].innerHTML;
console.log('Kills', kills);

0 -> Kills
1 -> Deaths
2 -> K/D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900