I need help with parsing HTML with Jsoup from: https://www.sierra.com/clearance~1/women~d~5324/specdataor~gender!women/colorfamily~red/priceor~%2410-%2414dotdot99/3/.
When I am trying to parse any HTML I get
java.net.SocketTimeoutException: Read timed out.
With other URLs, this code is working fine.
How can I solve this problem?
private void Parsedata(){
try {
String URL = "https://www.sierra.com/clearance~1/women~d~5324/specdataor~gender!women/colorfamily~red/priceor~%2410-%2414dotdot99/3/";
System.out.println(getPage(URL));
} catch (IOException e) {
e.printStackTrace();
}
}
private static Document getPage(String URL) throws IOException {
Document page = Jsoup.connect(URL).timeout(0).execute().parse();
return page;
}