package files; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.IOException; import java.net.URL; public class Parser { public static Document getPage() throws IOException { String url = "https://jut.su/anime/"; return Jsoup.parse(new URL(url), 3000); } public static void main(String[] args) throws IOException { Element animeList = Parser.getPage().select("div[class=all_anime_content anime_some_margin]").first(); assert animeList != null; Elements names = animeList.select("div[class=aaname]"); for (Element name : names) { String text = name.toString(); int start = 22; int end = text.indexOf("") - 1; char[] dst = new char[end - start]; text.getChars(start, end, dst, 0); System.out.println(dst); } } }