Skip to content

an Extensible,effcient API system to download websites'novels.

License

Notifications You must be signed in to change notification settings

xjackzenvey/novelAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简体中文

Warnning: The project can only used for learning.Don't abuse it!

NovelAPI:extensive efficient framework for downloading novels for website

The way to call it:

GET 127.0.0.1:19999/novel?platform=<Plugin name>?bookurl=<book url>

The way to launch:

  • for Microsoft Windows: pip install -r requirements.txt ./start.cmd
  • for Linux: Not test yet.Gunicorn server is expected in the future.

About the plugin:

It is easy to make a plugin.What you should do is to write the functions below:

  • get_every_chapter(bookurl:str) -> list[backends.book.Chapter]
  • get_chapter_content(chapter:backends.book.Chapter) -> str
  • writedown(text:str) -> None

and a struct(a dict in fact):

  • info = {}

you can look into my plugin to see how they work.(The plugin is stored at App Folder and they'll be loaded dynamically)

About

an Extensible,effcient API system to download websites'novels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published