I need to get currency values from https://www.bcr.ro/en/exchange-rates but getting html string with these methods:
WebRequest req = HttpWebRequest.Create("https://www.bcr.ro/en/exchange-rates"); req.Method = "GET"; string source; using (StreamReader reader = new StreamReader(req.GetResponse().GetResponseStream())) { source = reader.ReadToEnd(); }
WebClient wc = new WebClient(); string s = wc.DownloadString("https://www.bcr.ro/en/exchange-rates");
Both are resulting in getting a weird html string, which not contains desired data:
<!DOCTYPE html>
<html lang="en" class="no-js false_EAM isEmil_false">
<!-- Version: 2.16.7.0 (gportals2m1pvm1-044457035960000082024075) Date: 24.10.2015 18:19:59 -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Exchange rates | BCR</title>
<link rel="shortcut icon" type="image/x-icon" href="https://www.bcr.ro/content/8ea9dd8a/-3b9c-429b-9f72-34e75b7512e3/favicon.ico">
<meta name="author" content="Banca Comerciala Romana (BCR): loans, cards, deposits, Internet Banking, current account">
<meta name="description" content="Banca Comerciala Romana (BCR), a member of Erste Group, is a universal bank serving both retail and corporate clients. ">
<meta name="generator" content="Group Portal - 2.16.7.0"><meta name="keywords" content=" loans, cards, deposits, Internet Banking, current account">
How could I achieve wanted result?