-2

I want to program a java application, which will load data about flats from http://www.reality.sk/vyhladavanie.4 and store them into file or db.

What is the best approach to do that? What should I use to get data about every flat and how can I get data from other pages?

I thought about selenium and wrote some tests which will save all the data and click over all pages, but is there any better solution?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
M.P.
  • 85
  • 1
  • 11

1 Answers1

0

You'll need to take a look into web/html scraping with java

For example, the table of the results has the class search-result-ad-row and the title has class title, you should be able to extract the rest of the data in this way.

There are numerous ways to connect to a database, both through JDBC and ORM tools like Hibernate. Java File IO is quite straightforward, but will depend on what format you want to store your data in.

Community
  • 1
  • 1
Jason
  • 734
  • 1
  • 7
  • 17