Skip to content

AP-Atul/novel-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

API/Scrapper for Light Novels

App making use of this API mangatain

Usage

  1. Download the jar file
wget https://github.com/AP-Atul/novel-api/releases/download/v0.1/ln-v0.1.jar
  1. Add to the project.

  2. Declare class object of NClient

class Sample implements NListener {
    NClient client = new NClient(this);
}
  1. 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();
  1. 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) {

}

Using with Android

  1. For use with Android, you can make use of BroadcastReceiver or LiveData.
  2. All variables are public for the model classes.