I wanted to read comics off mangareader.net whilst offline so I wrote this code to grab off all the images and chapters of a particular comic. Just feed the chapter index URL by replacing the url variable.
This code uses Java and requires the Jsoup library as well as commons StringUtils both of which you can download by googling the respective libraries.
try { String url; url = "http://www.mangareader.net/94/bleach.html"; Document doc = Jsoup.connect(url).userAgent("Mozilla").timeout(0).get(); String baseURL = "http://www.mangareader.net"; int page = 1; try{ Elements ee = doc.select("#chapterlist #listing tbody tr td a"); for (Element e : ee){ System.out.println(e.text()); System.out.println(e.attr("href")); String chapterURL = baseURL+e.attr("href"); Document chapter = Jsoup.connect(chapterURL).userAgent("Mozilla").timeout(0).get(); Elements ee2 = chapter.select("#topchapter #navi #selectpage #pageMenu option"); for (Element e2 : ee2){ String pageURL = baseURL+e2.attr("value"); Document pageinchapter = Jsoup.connect(pageURL).userAgent("Mozilla").timeout(0).get(); String src = pageinchapter.select("#imgholder a img").first().attr("src"); String imgName = StringUtils.substringAfterLast(src, "/"); String fileType = StringUtils.substringAfterLast(src, "."); String folderPath = "C:/temp/mangareader/bleach/"; URL url2 = new URL(src); InputStream in = url2.openStream(); OutputStream out = new BufferedOutputStream(new FileOutputStream( folderPath+ String.valueOf(page) + "." + fileType)); page++; for (int b; (b = in.read()) != -1;) { out.write(b); } out.close(); in.close(); } } }catch(Exception e){ e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); }