Page 1 of 1

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

Posted: Sat Jan 03, 2015 7:46 pm
by KraZy
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

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

Posted: Sat Jan 03, 2015 9:06 pm
by comathi
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.

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

Posted: Sat Jan 03, 2015 11:49 pm
by SumCode
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

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

Posted: Sun Jan 04, 2015 12:06 am
by comathi
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 :)

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

Posted: Sun Jan 04, 2015 9:52 am
by KraZy
Seems difficult haha, can you show me an example please?

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

Posted: Thu Jan 08, 2015 4:41 pm
by KraZy
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