So, I'm trying to parse a simple list using JSoup. Unfortunately, the program only returns records up to records starting with N in the list. I do not know why this is so. Here is my code:
public ArrayList<String> initializeMangaNameList(){ Document doc; try { doc = Jsoup.connect("http://www.mangahere.com/mangalist/").get(); Elements items = doc.getElementsByClass("manga_info"); ArrayList<String> names = new ArrayList<String>(); for(Element item: items){ names.add(item.text()); } return names; } catch (IOException e) {
So why does the list not contain all entries? Is there a web page error? Or maybe a parser? Can I use a workaround to work around this problem? And what causes the problem in the first place?
java list html parsing jsoup
Skylion
source share