Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Illegal character in URL
- at sun.net.www.protocol.http.HttpURLConnection.checkURL(HttpURLConnection.java:850)
- at sun.net.www.protocol.http.HttpURLConnection.<init>(HttpURLConnection.java:857)
- at sun.net.www.protocol.http.Handler.openConnection(Handler.java:62)
- at sun.net.www.protocol.http.Handler.openConnection(Handler.java:57)
- at java.net.URL.openConnection(URL.java:979)
- at com.web.DogsDataExtractorV.GetAllDogsData(DogsDataExtractorV.java:74)
- at com.web.DogsDataExtractorV.main(DogsDataExtractorV.java:115)
- try {
- Path file_Path = Paths.get("/home/c/cerda/DogsData/upload", "dog-links.txt");
- byte[] link_list = Files.readAllBytes(file_Path);
- String Link_String = new String(link_list);
- System.out.println(Link_String);
- GetAllDogsData(Link_String);
- }catch (Exception e) {
- System.out.println(e);
- Document doc = Jsoup.parse(file, null);
- Elements resulCharact = doc.select(("span[class=characteristic item-trigger-title]"));
- for (Element link : resulCharact ) {
- writeToFile("../upload/characteristic.txt", link.text()+ "n");
- }
- Elements resulRating = doc.select(("span[class=star-block stars-column]"));
- for (Element ratings : resulRating) {
- writeToFile("../upload/ratings.txt", ratings.text()+ "n");
- }
Add Comment
Please, Sign In to add comment