Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Is there a way, in Visual Basic, to pull a piece of data (for example, a number) from a webpage that is generated entirely with JavaScript and HTML? I want to create a way for my application to find updates on the internet, and I want to find out if this is a good way to do it.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Mar-12 23:25pm    
So, VB.NET or VB? They are different things?
--SA
drummerboy0511 18-Mar-12 23:37pm    
Well, any version of VB from VB.NET onward...
Sergey Alexandrovich Kryukov 19-Mar-12 0:56am    
I answered for .NET, so you can use VB.NET. I don't even want to discuss VB. And it has nearly nothing to do with VB.NET. I cannot imagine you want to support both...
--SA
drummerboy0511 21-Mar-12 23:49pm    
I don't... I stopped using VB a long time ago. Thank you for answering, by the way.
Sergey Alexandrovich Kryukov 22-Mar-12 0:08am    
You are welcome.
If you agree my answer makes sense, consider accepting it formally (green button) -- thanks.
--SA

1 solution

This is called Web scraping, please see: http://en.wikipedia.org/wiki/Web_scraping[^].

With .NET, you need to use the class System.Net.HttpWebRequest, please see:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].

See some code sample here:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^].

—SA
 
Share this answer
 
Comments
drummerboy0511 24-Mar-12 20:44pm    
Thank you!
Sergey Alexandrovich Kryukov 24-Mar-12 22:51pm    
You are very welcome.
Good luck, call again.
--SA

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