So I'm trying to scrape some data from a WebPage, but unable to do so. I tried doing it using substring() but that's very inefficient. Here's part of the code which I've written :
Elements links;
Element link;
String url = "https://www.premierleague.com/tables";
Document document = Jsoup.connect(url).get();
links = document.select("table");
org.jsoup.nodes.Element table = document.select("table").get(0);
Elements rows = table.select("tr");
org.jsoup.nodes.Element row = rows.get(1);
Elements cols = row.select("td");
Can anyone help me by giving a few examples from the same link ?