有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java为什么是我的jsoup。连接(url)无法使用某些url?

我正试图从http://tv.atmovies.com.tw/tv/attv.cfm?action=channeltime&channel_id=CH06获取标题

以下是我的部分源代码:

Document doc = Jsoup.connect( theurl above ).get();

Element title = doc.select("title");

textview.setText(title);

当我试图从www.yahoo.com获取标题时,这段代码可以工作。 但是它不能处理像http://tv.atmovies.com.tw/tv/attv.cfm?action=channeltime&channel_id=CH06这样的url,为什么


共 (1) 个答案

  1. # 1 楼答案

    此网站http://tv.atmovies.com.tw/tv/attv.cfm?action=channeltime&channel_id=CH06“重定向到http://www.atmovies.com.tw/home/