API/Scrapper for Light Novels
App making use of this API mangatain
- Download the jar file
wget https://github.com/AP-Atul/novel-api/releases/download/v0.1/ln-v0.1.jar
-
Add to the project.
-
Declare class object of NClient
class Sample implements NListener {
NClient client = new NClient(this);
}
- Call the required methods
// genre and the page no
client.browse(null, 1);
// string query to search for
client.search(query);
// to retrieve all the details and the pages for the novel
client.novel(novel);
// to retrieve the content for the chapter
client.chapter(chapter);
// returns the Set for all the genres
client.genres();
- Implement the listener methods
@Override
public void searchResult(List<Novel> novels) {
}
@Override
public void pageResult(NovelChapter chapter) {
}
@Override
public void novelResult(Novel novel) {
}
@Override
public void browseResult(List<Novel> novels) {
}
- For use with Android, you can make use of
BroadcastReceiver
orLiveData
. - All variables are public for the model classes.