Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting data from a website, without API? [closed]

Tags:

java

rest

web

api

I want to get automatically data about real estate from this site:

LINK

However, they do not have an api. How would you generally do that? I am thankfully for every response!

like image 207
user2051347 Avatar asked Nov 03 '22 02:11

user2051347


1 Answers

You're going to have to download the page yourself, and parse through all the info yourself.

You possibly want to look into the Pattern class, look at some regex, and the URL and String classes will be very useful.

You could always download an html library to make it easier. Something like http://htmlparser.sourceforge.net/ possibly.

Very general question so obviously I can't provide relevant code, but this is known as scraping.

like image 88
Austin Avatar answered Nov 08 '22 04:11

Austin