test_class.file: app/src/test/java/com/scraper/SiteToolsTest.java
test_class.identifier: SiteToolsTest
test_case.body: @Test
      public void getsCorrectVideoUrl() {
          String document=null;
          String correctURL="http://st71.anime1.com/One Piece Episode 854_HD.mp4?st=r0e3n168YmTJ3wi61iNGCg&e=1537727842";
          try {
              document = getDocument("episode.html");
          } catch (IOException e) {
              fail("Could not load html test file");
          }
  
          assertThat(SiteTools.getVideoURL(document).equals(correctURL),is(true));
      }
test_case.class_method_signature: SiteToolsTest.getsCorrectVideoUrl()
test_case.full_signature: @Test public void getsCorrectVideoUrl()
test_case.identifier: getsCorrectVideoUrl
test_case.invocations: getDocument fail assertThat equals getVideoURL is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getsCorrectVideoUrl()
focal_class.file: app/src/main/java/com/scraper/SiteTools.java
focal_class.identifier: SiteTools
focal_class.class_method_signature: SiteTools.getAnimeList(String response)
focal_class.full_signature: public static List<List<String>> getAnimeList(String response)
focal_class.identifier: getAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeList(String response)
focal_class.class_method_signature: SiteTools.getOngoingAnimeList(String string_document)
focal_class.full_signature: public static List<List<String>> getOngoingAnimeList(String string_document)
focal_class.identifier: getOngoingAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String string_document)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getOngoingAnimeList(String string_document)
focal_class.class_method_signature: SiteTools.getGenreList(String response)
focal_class.full_signature: public static List<List<String>> getGenreList(String response)
focal_class.identifier: getGenreList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getGenreList(String response)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElement(String url, String genre, int page)
focal_class.full_signature: public static Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.identifier: getAnimeByGenreElement
focal_class.modifiers: public static
focal_class.parameters: (String url, String genre, int page)
focal_class.return: Element
focal_class.signature: Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.class_method_signature: SiteTools.getAnimeByGenre(String url)
focal_class.full_signature: public static List<List<String>> getAnimeByGenre(String url)
focal_class.identifier: getAnimeByGenre
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenre(String url)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElementParse(Element div)
focal_class.full_signature: public static List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.identifier: getAnimeByGenreElementParse
focal_class.modifiers: public static
focal_class.parameters: (Element div)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.class_method_signature: SiteTools.getAlternateEpisodeLinks(String response)
focal_class.full_signature: public static List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.identifier: getAlternateEpisodeLinks
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.class_method_signature: SiteTools.getVideoURL(String response)
focal_class.full_signature: public static String getVideoURL(String response)
focal_class.identifier: getVideoURL
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: String
focal_class.signature: String getVideoURL(String response)
focal_method.body: public static String getVideoURL(String response) {
          String js = "";
          Document document = Jsoup.parse(response);
          Element divElement = document.getElementById("Movie");
          for (Element javascript : divElement.children()) {
              if (javascript.tagName().equals("script")) {
                  js = javascript.html();
              }
          }
          int firstIndex = js.indexOf("\"", js.indexOf("file"));
          int secondIndex = js.indexOf("\"", firstIndex + 1);
          String result = js.substring(firstIndex + 1, secondIndex);
          return result;
      }
focal_method.class_method_signature: SiteTools.getVideoURL(String response)
focal_method.full_signature: public static String getVideoURL(String response)
focal_method.identifier: getVideoURL
focal_method.invocations: parse getElementById children equals tagName html indexOf indexOf indexOf substring
focal_method.modifiers: public static
focal_method.parameters: (String response)
focal_method.return: String
focal_method.signature: String getVideoURL(String response)