I have this code:
String sitePath = "http://www.google.net/";
Document doc = Jsoup.connect(sitePath).get();
Elements elements = doc.select("body");
manipulateElements(elements);
long before = System.currentTimeMillis();
File fileDir = new File("google.html");
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileDir), "UTF8"));
out.write(doc.toString());
out.flush();
out.close();
How can I put absolute url for all data (style, img...)?
Hope it will be help you.
Images.
Links
Styles