How to capture values in real time? (Best way)

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
KraZy
Top Poster
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

I'm trying to grab the value of this page: http://it.soccerway.com/
in particulare i want grab the value that i underlined in the image:

Image

I've actually make a code that's based on regex pattern, but i don't use the regex because this value is particular. Infact the site update it in real time.
I don't use a WebBrowser control because this value must be inserted in a specific control such as a textbox or datagridview.
There's a best way to grab the value from a web page without the using of regex and WebBrowser control?
I've seen in Internet the HtmlAgilityPack.1.4.6 but i don't know how to use it.

Can anyone help me do this?
HAPPY 2015
Last edited by KraZy on Thu Jan 08, 2015 4:42 pm, edited 1 time in total.
I'm in the empire business.
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

You could use an HttpWebRequest to get the code for the Webpage every so often, and once you have the code, you can scan through it with Regex to get the information you want and insert it into your textbox or listview or whatever it is you want to do.
User avatar
SumCode
Dedicated Member
Dedicated Member
Posts: 57
Joined: Fri Aug 03, 2012 2:34 am

You could download the string from here and get the table values under 'content'. However I will note that this is a little bit tricky because one of the parameters in the url is dynamic I believe
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

SumCode wrote:
However I will note that this is a little bit tricky because one of the parameters in the url is dynamic I believe
Indeed! It looks like there's a date parameter, but you could easily insert that through the application you're building :)
User avatar
KraZy
Top Poster
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

Seems difficult haha, can you show me an example please?
I'm in the empire business.
User avatar
KraZy
Top Poster
Top Poster
Posts: 93
Joined: Sat May 26, 2012 8:40 am

KraZy wrote:
I'm trying to grab the value of this page: http://it.soccerway.com/
in particulare i want grab the value that i underlined in the image:

Image

I've actually make a code that's based on regex pattern, but i don't use the regex because this value is particular. Infact the site update it in real time.
I don't use a WebBrowser control because this value must be inserted in a specific control such as a textbox or datagridview.
There's a best way to grab the value from a web page without the using of regex and WebBrowser control?
I've seen in Internet the HtmlAgilityPack.1.4.6 but i don't know how to use it.

Can anyone help me do this?
HAPPY 2015
I'm in the empire business.
6 posts Page 1 of 1
Return to “Coding Help & Support”