【发布时间】:2015-03-29 01:49:46
【问题描述】:
我有a webpage,上面正在显示电影列表。内容是使用 AJAX 创建的(据我所知有限......)。
我想使用 Java 下载内容,在本例中为电影播放时间。我知道如何下载一个简单的网站,但在这里我的解决方案只给了我以下结果而不是播放时间:
ajaxpage('http://data.cineradoplex.de/mod/AndyCineradoProg/extern', “肌动程序”);
如何让我的程序下载这个 AJAX 函数给出的结果?
这是我使用的代码:
String line = "";
URL myUrl = http://www.cineradoplex.de/programm/spielplan/;
BufferedReader in = null;
try {
myUrl = new URL(URL);
in = new BufferedReader(new InputStreamReader(myUrl.openStream()));
while ((line = in.readLine()) != null) {
System.out.println(line);
}
} finally {
if (in != null) {
in.close();
}
}
【问题讨论】: