Hello, there is a link enter image description here

When clicking on it, there is such an html code, inside of which contains information that needs to be parsed.

have a WebClient

 WebClient client = new WebClient(); client.Encoding = Encoding.UTF8; client.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"); 

need to learn html code using webclient, is it possible?

    1 answer 1

    According to the link you gave, it displays the XML format ( FOAF ), as an HTML document you see it in the browser for readability.

    In your example, to get a string, just write

     var data = client.DownloadString("https://vk.com/foaf.php?id=1234"); 
    • Thanks, helped. In the xml form, parsing will be even more convenient! - pavel1787mego