Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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 18-Mar-12 18:17pm
Comments
SAKryukov at 18-Mar-12 23:25pm
   
So, VB.NET or VB? They are different things?
--SA
drummerboy0511 at 18-Mar-12 23:37pm
   
Well, any version of VB from VB.NET onward...
SAKryukov at 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 at 21-Mar-12 23:49pm
   
I don't... I stopped using VB a long time ago. Thank you for answering, by the way.
SAKryukov at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
drummerboy0511 at 24-Mar-12 20:44pm
   
Thank you!
SAKryukov at 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)

  Print Answers RSS
0 OriginalGriff 6,569
1 Sergey Alexandrovich Kryukov 6,168
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 18 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100