How to parse the number from HTML using C#?

Hello.

On this site: MICEX
indicate the volume of transactions "147 354 466 820" in rubles. I need to put this number. How can I do that in C#?
PS it is Worth considering that when you press Ctrl+U in any browser, this number is not displayed in HTML code.
June 14th 19 at 18:26
3 answers
June 14th 19 at 18:28
Solution
This Agalarova page and the value is Bendigo that to get the result can for example make some request. Generally, if You receive a page request using HtmlClient (or RestSharp), You will get a page with raw js scripts, they must run on the client side in the browser after the page has loaded. So You get {{column.getValue(item)}}, but if this result will have a browser, it will execute a script and there will be value.
In General, the solution may be to load the page, for example using Selenium (WebDriver) or via Phantom and already with them to get the value.

Here is another option. I have not tried it, but I write that so you can run js code, try.
And what for such complexity, there is a WebAPI in JSON to get data, and no steam. - Josef commented on June 14th 19 at 18:31
if he wanted to use WebAPI, maybe it would. But the question was about parsing. - Abner32 commented on June 14th 19 at 18:34
the point to get the numbers, what for complexity. Just TC apparently has mastered and download the page and find the right, the first thing that comes to mind for the beginner. - Josef commented on June 14th 19 at 18:37
June 14th 19 at 18:30
Solution
It is a SPA application on angular, on any is WebAPI through which the data is obtained, the developer console in your hands and look at the network requests and responses. then just do helmet queries and response parsing. And I found there are references to "XML Download", "Download CSV". these formats to parse at times easier than dragging in the Selenium project and to parse HTML.
"And I found there are references to "XML Download", "Download CSV". these formats to parse at times easier than dragging in the Selenium project and to parse the HTML." - this way I will be inconvenient to take the data from each page. I just need to parse data from multiple different pages on this website.

As for the way "the developer console in your hands and look at the network requests and responses. then just do helmet queries", it is interesting to me. And can you tell me where or how you can find online lessons on this topic?
I just read in the developer console in Firefox and found there is query that you want to send to the server to retrieve the data I need. - Josef commented on June 14th 19 at 18:33
Although I found the data here:
https://iss.moex.com/iss/history/engines/currency/...
Now I need to figure out how to get them from here. - Abner32 commented on June 14th 19 at 18:36
I found it in Firefox -> Explore item -> Debugger -> iss.moex.com -> securities.jsonp. - Josef commented on June 14th 19 at 18:39
June 14th 19 at 18:32
In fact, the introduction to web scraping is unlikely to help me. I have the data being parsed from the HTML earlier. Just then a non-standard case. I have not yet encountered.
I first downloaded the whole HTML document with C#, and then the paper had found the right piece of code. Here, when downloading the HTML of the desired piece of code with the number "147 354 466 820" is not in all downloaded HTML document, but on the website the number is displayed. - Josef commented on June 14th 19 at 18:35

Find more questions by tags .NETC#HTMLParsing