package fr.mantal.wcdl;

import java.nio.file.Paths;

public class Main
{
	public static void main(String[] args)
	{
		String localPath = args.length > 1 ? args[0] : Paths.get(System.getProperty("user.home"), "Pictures", "Comics").toString();

		Downloader phdcomics = new Downloader("#comic", "td[align=left]>a", "http://www.phdcomics.com/comics/", "archive.php?comicid=1", Paths.get(localPath, "PHD comics").toString()).Title("title", "PHD Comics: (.+)");
		Downloader sinfest = new Downloader("td[colspan=\"2\"]>img", "table[border=\"0\"] td.style5:last-child>a", "http://www.sinfest.net/", "view.php?date=2000-01-17", Paths.get(localPath, "Sinfest").toString()).Title("td.style3", ".+: (.+)");
		Downloader darkLegacy = new Downloader(".comic-image", ".nextLink", "http://www.darklegacycomics.com/", "1", Paths.get(localPath, "Dark Legacy").toString()).Title("title");

		phdcomics.download();
		sinfest.download();
		darkLegacy.download();
	}
}

@@ -865,16 +865,218 @@
 title%22);
+%0A%09%09Downloader dilbert = new Downloader(%22.img-comic%22, %22.nav-right%3Ea%22, %22http://dilbert.com/%22, %22strip/1989-04-16%22, Paths.get(localPath, %22Dilbert%22).toString()).Title(%22.comic-title-date%22).ImageFormat(%22gif%22);
 %0A%0A%09%09phdc
@@ -1140,13 +1140,35 @@
 load();%0A
+%09%09dilbert.download();%0A
 %09%7D%0A%7D%0A

Add Dilbert downloader