データを解析するためにページのソースを取得したかっただけです。
次のコードを使用しました
public static String getPageSourceFromUrl(String Url) {
String text = "";
try {
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(Url);
HttpResponse response = client.execute(request);
InputStream in = response.getEntity().getContent();
BufferedReader reader = new BufferedReader(
new InputStreamReader(in));
StringBuilder str = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
str.append(line);
}
in.close();
text = str.toString();
} catch (Exception ex) {
}
return text;
}
ページは次のとおりです。
残念ながら、一部のページ (上記のページなど) では、テキスト リターンはソース全体の一部にすぎません。おそらく文字列が制限を超えているので、誰かが解決策を持っていますか?