我正在解析此url,但我遇到了ajax加载问题。当我解析这个网站时,它只显示我没有回应的身体我需要elememt ticket_lists
的身体。我不知道这个网站上的重定向是如何工作的。我在调试器中尝试调试js但没有成功。我正在使用jsoup。有可能吗?
谢谢
Connection.Response response = Jsoup.connect("https://jizdenky.studentagency.cz/Booking/from/1763018002/to/10202038/tarif/REGULAR/departure/20160711/retdep/20160711/return/false/ropen/false/credit/false/class/2")
.method(Connection.Method.GET)
.execute();
Map<String,String> cookies = response.cookies();
Document doc = Jsoup.connect("https://jizdenky.studentagency.cz/Booking/from/1763018002/to/10202038/tarif/REGULAR/departure/20160711/retdep/20160711/return/false/ropen/false/credit/false/class/2?1")
.userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36")
.cookies(cookies)
.get();
System.out.print(doc.body());