HTML - Leer HTML en VS Code

 
Vista:

Leer HTML en VS Code

Publicado por Yul (1 intervención) el 14/05/2021 19:23:30
Hola que tal, estoy realizando un proyecto, pero necesito leer los datos que contiene un HTML, sólo que cuando jalo los datos del HTML a VS Code, me los imprime así:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<tfoot>
    <tr>
        <th>Sitio</th>
        <th>Instant&aacuteneo</th>
        <th>Totalizado</th>
    </tr>
 
</tfoot>
<tbody>
    <tr>
        <td>Acuaf&eacuterico 1 (Atlachehuatl 1)</td>
        <td>   5.59</td>
        <td>      844640</td>
    </tr>
    <tr>
        <td>Acuaf&eacuterico 2 (Atlachehuatl 2)</td>
        <td>  22.70</td>
        <td>     3263225</td>
    </tr>
    <tr>
        <td>Acuaf&eacuterico 3</td>
        <td>  85.80</td>
        <td>    15205608</td>
    </tr>

Y necesito obtener solo el nombre especifico de un pozo con su respectivo dato
Acuaf&eacuterico 3
85.80
15205608


El código que estoy usando es este, sólo necesito ayuda para imprimir en consola solo los datos que necesito pero no sé que sintaxis utilizar para hacerlo.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Net;
using Newtonsoft.Json;
 
namespace HTML_pozos
{
    class Program
    {
        private static object response1;
 
        static void Main(string[] args)
        {
            string url = "http://10.6.60.6/TAB/tabular.html";
            var json = new WebClient().DownloadString(url);
            dynamic m = JsonConvert.SerializeObject(json);
            Console.WriteLine(json);
        }
   }
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder