Novel Hunter
Novel Hunter is a Flask-based web scrapper designed to provide novel rankings, chapter lists, and detailed novel information. It allows users to fetch top-ranked novels, retrieve chapter listings, and explore specific novel details via simple API endpoints.
This project is designed to make it easier for users to discover and read their favorite novels, with features like fetching top novels by category, viewing detailed novel information, and navigating through chapters.
- Top Novel List: Retrieves a list of top-ranked novels based on time frame and genre.
- Novel Information: Fetches detailed information about a specific novel.
- Chapter List: Displays a list of chapters for a specific novel.
- Chapter Information: Shows detailed information for a specific chapter.
- URL:
/
- Method:
GET
- Description: Returns the home content of the application.
- URL:
/novel
- Method:
GET
- Query Parameters:
time
: Time frame for the ranking (e.g., "Monthly")type
: Type of novel (e.g., "Fantasy", "Action")
- Description: Retrieves a list of top-ranked novels based on the specified time and type.
GET /novel?time=Monthly&type=Fantasy
{
"status": "success",
"novel_list": [
{"title": "Novel 1", "rank": 1},
{"title": "Novel 2", "rank": 2}
]
}
- URL:
/novels/<url>
- Method:
GET
- Description: Retrieves detailed information about a specific novel using its URL.
GET /novels/novel-123
{
"status": "success",
"novel_info": {
"title": "Novel 1",
"author": "Author Name",
"genre": "Fantasy"
}
}
- URL:
/chapters/<url>/<number>
- Method:
GET
- Description: Retrieves a list of chapters for a specific novel and chapter number.
GET /chapters/novel-123/1
{
"status": "success",
"chapters": [
{"chapter_title": "Chapter 1", "chapter_link": "link_to_chapter_1"},
{"chapter_title": "Chapter 2", "chapter_link": "link_to_chapter_2"}
]
}
- URL:
/info/<url>/<id>
- Method:
GET
- Description: Retrieves detailed information about a specific chapter of a novel.
GET /info/novel-123/1
{
"status": "success",
"chapter_info": {
"title": "Chapter 1",
"content": "This is the content of chapter 1..."
}
}
- Python 3.x
- Flask
-
Clone the repository:
git clone https://github.com/abhishek-shivale/novel-hunter.git cd novel-hunter
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask app:
python app.py
-
Visit
http://127.0.0.1:5000
in your browser to view the application.
Flask==2.0.2
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Open a pull request to the main repository.
This project is licensed under the MIT License - see the LICENSE file for details.
Novel Hunter is maintained by abhishek. Feel free to open an issue or contribute to the project!