Click here to Skip to main content
15,072,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am wondering if you can capture the list of prices from a website (in my case a book website).

Unlike in the search submission you can see how the code is used but here at the results page you cant.

here is an example:

http://www.abebooks.com/servlet/SearchResults?bi=0&bx=off&ds=30&isbn=9781551927282&recentlyadded=all&sortby=2&sts=t&x=46&y=11[^]

I want to capture the first price it comes up and put it into a database along with other information. Is this possible? (im a newbie so it might not be so obvious for me)

I think I have to use gridview in order to this right?

thanks alot.
Posted

You'll need to use a web crawler/screen scraper. The act of crawling, scraping and storing the data is completely separate from displaying this on your page.

Clarification: You'll need to scrape the page for the data you'd like. It may be worth while to see if the website has an API you can consume.


Check out a local example of a web crawler: A Simple Crawler Using C# Sockets

Screen Scraping with C# for ASP.NET[^]
   
v2
I built this framework[^] to solve exactly this class of problems and have used it with much success in this[^] app and this[^] app.

/ravi
   
Comments
slayasty 16-Dec-13 14:47pm
   
mm. ok i shall try that solution out :) thanks alot!

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