I’m executing this code:
//doc = Jsoup.connect(data[0].getURL()).get();
Document doc = Jsoup.connect(url).post();
and am getting an out of memory exception. Obviously the web page’s HTML is too much too download. All I want from the webpage are all of the elements within the following tags
<div class="animal-info">...</div>
Is there a way for me to do this using Jsoup without having to download the whole webpage, or a way to get around the out of memory exception?
Try