我需要从页面“ https://www.fonbet.ru/#!/bets/football ”获取信息,但我不能全部完成。那些。事实证明,但没有读取匹配表。尝试使用 Jsoup
Document doc = Jsoup.connect("https://www.fonbet.ru/#!/bets/football").get();
String text = doc.body().text();
并且还通过 URL 尝试过
URL url = new URL("https://www.fonbet.ru/#!/bets/football");
BufferedReader reader = new BufferedReader(
new InputStreamReader(url.openConnection().getInputStream(), "UTF-8"));
while (true) {
String line = reader.readLine();
if (line == null)
break;
我征求你的意见。感谢您的关注。
问题是您的网站是用 react 编写的。仅仅加载这样的页面是不够的,因为。在加载的页面上有一个js代码,应该在客户端执行并加载表格。
您的任务的实施选项: