-1

I want to take all values from this link http://economictimes.indiatimes.com/indices/nifty_50_companies.cms

and want to put those NIFTY 50 companies companyname and LTP into sql table.

please help me give me some threads

I want use c# ,asp.net :)

Neo
  • 15,491
  • 59
  • 215
  • 405

3 Answers3

2

Use HTML Agility Pack to get the values from the HTML page.

Find tutorials from here on how to use HTML Agility Pack.

Community
  • 1
  • 1
Bibhu
  • 4,053
  • 4
  • 33
  • 63
0

Assuming you already have a table in SQL..

You may do it like this:

  1. Download the page
  2. Parse its content
  3. Bulk Insert the values in the table
aF.
  • 64,980
  • 43
  • 135
  • 198
0

Searcharoo has a class called the HtmlDocument. You can split the downloaded html content(use System.Net.WebClient to download the document from the url) into metatitle, metadescription, metakeywords and content(words).

You can find the searcharoo download here(it is open source)

http://www.searcharoo.net/SearcharooV7/

Sunil Raj
  • 460
  • 5
  • 20