views:

435

answers:

3

I need a open source java based web crwaler which I can extend for price comparison? How do I do the price comparison? Is there any open source code for that?

+1  A: 

Take a look at web harvest, you will have to use it's slightly odd and peculiar syntax for processing web pages, but it should be fairly to extend it to do some price comparison:

http://web-harvest.sourceforge.net/samples.php?num=2

Jon
A: 

Any reason you can't just get your data from one of the hundreds of price comparison sites already out there? Seems like would be simpler to scrape nextag or froogle or whatever instead of writing a crawler to scrape billions of store websites.

davr
Thx for the reply. Yes I have already reviewed web harvest. Yes,I also had ideas about just scraping price comparison sites? So it should be by a crawler right? Next do the price comparison sites alow you to crwal their sites? Am I missing something here?If it is simple all you need is to crwal 10-20 web sites right?
yeskay
+2  A: 

Building something that scrapes price information from a large number of different sites is going to be a lot of work, whether you scrape from the stores themselves or from existing comparison sites.

  • Everyone's website layout will be different, requiring you to configure your crawler separately for each one.

  • Some websites may present the price information in ways that make scraping difficult; e.g. using AJAX.

Some website owners will put the relevant pages into their robots.txt files to tell you to stay away. And if you ignore that, there are various things they can do to make life difficult for you.

Scraping lots of people's websites without permission is likely to make you unpopular. It might attract threats of lawsuits, or actual lawsuits from people who perceive that you are harming their business model. Or other responses ...

Are you really sure you want to do this? Really??

Stephen C