@Test public void getsAllAnimeList(){ String document=null; try { document=getDocument("allanime.html"); } catch (IOException e) { fail("Test HTML file not found."); } assertThat((SiteTools.getAnimeList(document).get(0).get(0).equals("009-1")),is(true)); assertThat((SiteTools.getAnimeList(document).get(0).get(1).equals("http: }
public static List<List<String>> getAnimeList(String response) { Document document = Jsoup.parse(response); List<List<String>> animeList = new ArrayList<>(); Elements links = document.select("ul.anime-list>li>a"); for (Element link : links) { animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href")))); } return animeList; }
SiteTools { public static List<List<String>> getAnimeList(String response) { Document document = Jsoup.parse(response); List<List<String>> animeList = new ArrayList<>(); Elements links = document.select("ul.anime-list>li>a"); for (Element link : links) { animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href")))); } return animeList; } }
SiteTools { public static List<List<String>> getAnimeList(String response) { Document document = Jsoup.parse(response); List<List<String>> animeList = new ArrayList<>(); Elements links = document.select("ul.anime-list>li>a"); for (Element link : links) { animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href")))); } return animeList; }  }
SiteTools { public static List<List<String>> getAnimeList(String response) { Document document = Jsoup.parse(response); List<List<String>> animeList = new ArrayList<>(); Elements links = document.select("ul.anime-list>li>a"); for (Element link : links) { animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href")))); } return animeList; }  static List<List<String>> getAnimeList(String response); static List<List<String>> getOngoingAnimeList(String string_document); static List<List<String>> getGenreList(String response); static Element getAnimeByGenreElement(String url, String genre, int page); static List<List<String>> getAnimeByGenre(String url); static List<List<String>> getAnimeByGenreElementParse(Element div); static List<List<String>> getAlternateEpisodeLinks(String response); static String getVideoURL(String response); }
SiteTools { public static List<List<String>> getAnimeList(String response) { Document document = Jsoup.parse(response); List<List<String>> animeList = new ArrayList<>(); Elements links = document.select("ul.anime-list>li>a"); for (Element link : links) { animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href")))); } return animeList; }  static List<List<String>> getAnimeList(String response); static List<List<String>> getOngoingAnimeList(String string_document); static List<List<String>> getGenreList(String response); static Element getAnimeByGenreElement(String url, String genre, int page); static List<List<String>> getAnimeByGenre(String url); static List<List<String>> getAnimeByGenreElementParse(Element div); static List<List<String>> getAlternateEpisodeLinks(String response); static String getVideoURL(String response);  }