Click here to Skip to main content
15,919,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Have Three Text Boxes: Author, Title And Price In My Page. If I Search It Should Go To Amazon Page And Extract Books And Display In My Page.
C#
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
response = request.GetResponse();
reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
result = reader.ReadToEnd();

Here i am getting the all html data in result there after i am not knowing what to do please help me
Posted
Updated 25-Mar-14 8:21am
v2
Comments
Sergey Alexandrovich Kryukov 25-Mar-14 14:21pm    
And what's the problem? Do you know what's required to extract books? Can you do it manually? If you can, what prevents you from doing it in your code?
—SA
joshrduncan2012 25-Mar-14 14:40pm    
OP "replied" to you.
Sergey Alexandrovich Kryukov 25-Mar-14 15:42pm    
Thank you; I even answered...
—SA
Ponnam Balakrishna 25-Mar-14 14:33pm    
i need to extract the books from that result
joshrduncan2012 25-Mar-14 14:40pm    
What have you tried to do beyond what you have shown to extract the books? What is the problem? Where are you stuck?

 
Share this answer
 
Ponnam Balakrishna wrote:
I have extracted all the HTML data of the page. I don't know what to do next, like parsing and finding the books.
You already told what you need to do, parsing, etc.

Basically, this is a problem of "Web scraping": http://en.wikipedia.org/wiki/Webscraping[^].
For some basic ideas, please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].

—SA
 
Share this answer
 
Comments
joshrduncan2012 25-Mar-14 15:56pm    
*thumbs up* My +5.
Sergey Alexandrovich Kryukov 25-Mar-14 15:59pm    
Thank you very much.
—SA

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