diff --git a/Tagger/Tagger.jar b/Tagger/Tagger.jar index 6e53d58..105e558 100644 Binary files a/Tagger/Tagger.jar and b/Tagger/Tagger.jar differ diff --git a/Tagger/src/PixivManager.java b/Tagger/src/PixivManager.java index 4bf009d..436f4d1 100644 --- a/Tagger/src/PixivManager.java +++ b/Tagger/src/PixivManager.java @@ -37,7 +37,7 @@ public class PixivManager { bwOutput = new BufferedWriter(fwOutput); for (String s : imageTag.pixiv_image_list) { - String url = "https://www.pixiv.net/member_illust.php?mode=medium&illust_id="+s; + String url = "https://www.pixiv.net/en/artworks/"+s; try { if (!new File("downloadedData/temp"+s+".html").exists()) { System.out.println("Starting download of "+url+" ..."); @@ -45,7 +45,8 @@ public class PixivManager { String[] data = utils.readFromFile("downloadedData/temp"+s+".html"); int scriptEndLine = 0; while (scriptEndLine")+"///"+cutpos); + if (cutpos")+3)); + System.out.println(data[scriptEndLine].substring(cutpos,data[scriptEndLine].indexOf("}}}'>")+3)); } bw.close(); fw.close(); @@ -72,7 +76,7 @@ public class PixivManager { JSONObject jsonData = utils.readJsonFromFile("finaltemp"); //System.out.println(Arrays.deepToString(JSONObject.getNames(jsonData.getJSONObject("preload")))); //System.out.println(Arrays.deepToString(JSONObject.getNames(jsonData.getJSONObject("preload").getJSONObject("illust")))); - JSONArray tagsArray = jsonData.getJSONObject("preload").getJSONObject("illust").getJSONObject(s).getJSONObject("tags").getJSONArray("tags"); + JSONArray tagsArray = jsonData.getJSONObject("illust").getJSONObject(s).getJSONObject("tags").getJSONArray("tags"); for (int i=0;i