I'm trying to scrape information for a house on the website(ex price). I'm using Jsoup.
I'm not to sure what the output means...
I don't get any output when I try to print the price. so I used document.outerHtml()
just to see what would come up (see below).
My code:
public static void main(String[] args) throws Exception{
final Document document = Jsoup.connect("https://www.realtor.ca/real-estate/19963675/3-1-bedroom-single-family-house-213-heritage-lake-bv-heritage-pointe").get();
Elements elements = document.select("div.leftTableCell");
for(Element row : elements){
System.out.println(row.text());
}
System.out.println(document.outerHtml());
}
Output:
expected: $750,000