使用 java 下载 AJAX 生成的内容

Download AJAX generated content using java

我有 a webpage 正在显示电影列表。内容是使用 AJAX 创建的(据我有限的知识表明...)。

我想下载内容,在本例中是电影播放时间,使用 Java。我知道如何下载一个简单的网站,但在这里我的解决方案只给我以下结果而不是播放时间:

ajaxpage('http://data.cineradoplex.de/mod/AndyCineradoProg/extern', "kinoprogramm");

如何让我的程序下载这个 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();
            }
        }

在您的回复中,您可以看到从中检索实际数据的地址

http://data.cineradoplex.de/mod/AndyCineradoProg/extern

您可以请求它的内容并解析它。