My Recent Projects
-
Arch-Post-Install
Post-instal script for archlinux to make the system look like mine -
My Website
This website: made using Rust, Rocket, and Handlebars. -
JEdenManga
Unofficial Manga Eden API client using Java
Unofficial Manga Eden API client using Java
Author:
Rahul Sivananda
Added to Projects on
This project is now abandoned, as the site is nolonger available.
JEdenManga is an unofficial Manga Eden API client using java see more at https://www.mangaeden.com/api.
"mangas"
which contains the manga's image, title, ID, alias, status, category (genre), last chapter date, and hits.try {
JEdenManga edenManga = new JEdenManga();
// edenManga.setLanguage(Language.Italian);
edenManga.setLanguage(Language.English);
MangaList allManga = edenManga.getAllManga();
} catch (IOException e) {
e.printStackTrace();
}
getAllManga()
, but returns only 500 manga's informations (from manga X*500 to (X+1)*500, where X is the page argument)
try {
JEdenManga edenManga = new JEdenManga();
//mangas from 1500 to 2000
MangaList mangaList = edenManga.getMangaListSplited(3);
List<Manga> mangas = mangaList.getMangas();
} catch (IOException e) {
e.printStackTrace();
}
try {
JEdenManga edenManga = new JEdenManga();
// returns mangas from 30 to 60
MangaList first10Manga = edenManga.getMangaListSplitedRange(1, 30);
List<Manga> mangas = first10Manga.getMangas();
} catch (IOException e) {
e.printStackTrace();
}
try {
JEdenManga edenManga = new JEdenManga();
MangaInfo mangaInfo = edenManga.getMangaInfo("managId.");
} catch (IOException e) {
e.printStackTrace();
}
//OR
try {
JEdenManga edenManga = new JEdenManga();
MangaList first25Manga = edenManga.getMangaListSplitedRange(0, 25);
List<Manga> mangas = first25Manga.getMangas();
MangaInfo mangaInfo = mangas.get(0).getMangaInfo();
} catch (IOException e) {
e.printStackTrace();
}
"chapterId"
here is the chapter's id you can get with the previous api call.try {
JEdenManga edenManga = new JEdenManga();
// edenManga.setLanguage(Language.Italian);
edenManga.setLanguage(Language.English);
ArrayList<Page> chapterPages = edenManga.getChapterPages("chapterId");
} catch (IOException e) {
e.printStackTrace();
}
//OR
try {
JEdenManga edenManga = new JEdenManga();
// edenManga.setLanguage(Language.Italian);
edenManga.setLanguage(Language.English);
MangaList first25Manga = edenManga.getMangaListSplitedRange(0, 25);
List<Manga> mangas = first25Manga.getMangas();
MangaInfo mangaInfo = mangas.get(0).getMangaInfo();
ArrayList<ChapterInfo> chapterPages = mangaInfo.getChapters();
ArrayList<Page> pages = chapterPages.get(0).getPages();
} catch (IOException e) {
e.printStackTrace();
}
JEdenManga edenManga = new JEdenManga();
Status status = edenManga.login("userName", "pasword".toCharArray());
System.out.println(status==Status.OK);
System.out.println(status==Status.ERROR);
JEdenManga edenManga = new JEdenManga();
Status status = edenManga.logout()
System.out.println(status==Status.OK);
System.out.println(status==Status.ERROR);
JEdenManga edenManga = new JEdenManga();
Status status = edenManga.login("userName", "pasword".toCharArray());
if(status==Status.OK) {
List<MyManga> myManga = edenManga.myManga();
myManga.forEach(manga->{
System.out.println(manga.getLastChapterRead());
});
}
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
</dependencies>