Z
Z
Zo1reX2021-11-23 21:44:46
C++ / C#
Zo1reX, 2021-11-23 21:44:46

Why doesn't it output the result of the C# parse?

I can't understand why the Ethereum price is not displayed

public static String Ethereum()
        {
            WebClient wc = new WebClient();
            String Response = wc.DownloadString("https://bankiros.ru/crypto/ethereum");
            String Rate = Regex.Match(Response, @"<div class=""crypto_curr_val""> ([0-9]+\.[0-9]+)</div>").Groups[1].Value;
            Console.WriteLine(Rate);
            return "Ethereum:" + Rate + "\r\n";
        }

        public static void Main(string[] args)
        {
            Console.WriteLine(Ethereum());
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2021-11-23
specialist @borisdenis

String Response = wc.DownloadString("https://bankiros.ru/crypto/ethereum");

Are you sure you Responseget what you need? See what's in there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question