Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi there.
I am learning c# and asp.net and i need to take information from the webpage (name and price of goods) . I want to make it by myself , NOT WITH USE htmlagilitypack
What books, links, or source you can suggest me to learn this ?
Posted
Updated 18-Mar-15 1:26am
v4

You can download the html from a page using the WebClient

Sample code for getting HTML via webclient[^]

Once you have the source it's up to you. You can use regular expressions to identify the divs etc that contain the prices, or you can use basic techniques like IndexOf to search for the relevant elements then use Substring to extract the text you're interested in.
 
Share this answer
 
Comments
Andrey Golubtsov 18-Mar-15 7:40am    
Thanks alot , you write directly that i need.
 
Share this answer
 
Comments
Andrey Golubtsov 18-Mar-15 4:47am    
i write not with use of htmlagilitypack !
Thanks7872 18-Mar-15 6:31am    
Countered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900