私は解決策を見つけました。それはウェブサイトの逸脱した芸術のために働きます。 githubのプロジェクトに触発されました。
https://github.com/4pr0n/ripme/blob/master/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java
Map<String,String> cookies = new HashMap<String , String>();
org.jsoup.Connection.Response resp =
Jsoup.connect("https://sorcerushorserus.deviantart.com/art/Dash-Academy-2-Hot-Flank-Part8-263131103")
.userAgent("Mozilla").execute();
cookies = resp.cookies();
Document doc = resp.parse();
Elements eles = doc.select("a.dev-page-download");
if(eles.size()>0)
{
System.out.println("We have the downlaod link on this page!");
String downloadlink = eles.get(0).attr("href");
System.out.println(":"+downloadlink);
HttpURLConnection con = (HttpURLConnection) new URL(downloadlink).openConnection();
String cookiesString = "";
for(Map.Entry<String, String> entry:cookies.entrySet())
{
cookiesString = cookiesString+entry.getKey()+"="+entry.getValue()+";";
}
cookiesString = cookiesString.substring(0, cookiesString.length()-1);
System.out.println("Cookie String: "+cookiesString);
con.setRequestProperty("Cookie", cookiesString);
con.setRequestProperty("User-Agent","Mozilla");
con.setInstanceFollowRedirects(true);
con.connect();
int respondcode = con.getResponseCode();
Thread.sleep(10000);
String location = con.getURL().toString();
System.out.println("response code: "+ respondcode);
System.out.println("image location: "+location);
con.disconnect();
そう....クールな...