-1

i want to scrape table from this site : http://www.x-rates.com/table/?from=INR&amount=1

I want this table

and i want to do this with C# Windows Application
I use web request and response and it shows me all page source code
how can I pick that specific table ??

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.x-rates.com/table/?from=INR&amount=1");
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        StreamReader reader = new StreamReader(response.GetResponseStream());
        richTextBox.text = reader.ReadToEnd();
kemiller2002
  • 113,795
  • 27
  • 197
  • 251
ArshamCoder
  • 119
  • 2
  • 8
  • In Windows Application, it is easier to use WebBrowser Control. You can go through all your HtmlDocument and find that table. –  Jul 04 '16 at 09:22
  • search "scrape web site [c#]", here at stack overflow. you'll find the same question asked many, many times – Gian Paolo May 30 '20 at 12:31

1 Answers1

0

Use C# HTML Agility pack to extract HTML table from your response. It's a table and you can easily extract that table from HTML.

Parsing HTML Table in C#

May be above link will help you.

Community
  • 1
  • 1
user711241
  • 11
  • 1
  • 4