/FanqieNovelDownloader

番茄小说下载器+获取24奥运实时金牌榜

Primary LanguagePythonMIT LicenseMIT

NovelDownloader

Project Overview

NovelDownloader is an application designed to download novels from a specific website. It provides a user-friendly interface where users can input a book ID to download the novel's content. The program supports pausing and resuming downloads and offers interesting fun facts for entertainment. Additionally, it can display the top five countries in the Olympic gold medal rankings.

Features

  • Download Novels: Enter the book ID to download the novel content.
  • Update Book Status: Check if the book has new chapters available.
  • Fun Facts: Get random fun facts for entertainment.
  • Olympic Medal Rankings: View the top five countries in the Olympic gold medal rankings.
  • User Agreement: Displays a user agreement at the start.

Installation

Prerequisites

  • Python 3.6 or higher
  • pip package manager

Installing Dependencies

First, clone the project repository locally, then install the required packages:

git clone https://github.com/your_username/NovelDownloader.git
cd NovelDownloader
pip install -r requirements.txt

Usage

Starting the Application

After setting up the environment, you can start the application by running:

python main.py

How to Use

  1. After starting the application, a user agreement dialog will appear. Read the agreement and choose "Agree" or "Disagree."
  2. Enter the book ID and click the "Confirm" button to start the download.
  3. Click the "Update Book Status" button to check if there are new chapters available for the book.
  4. Click the "Get Fun Fact" button to receive a random fun fact.
  5. Click the "Get Olympic Top 5" button to view the current top five countries in the Olympic gold medal rankings.

Obtaining the Book ID

The Book ID can be found in the URL of the book's page. For example, in the URL https://fanqienovel.com/page/7216762831459665384, the part 7216762831459665384 is the Book ID.

Project Structure

  • main.py: Main entry point of the application.
  • download_utils.py: Contains functions for downloading and decoding novel content.
  • file_utils.py: File operations such as saving and loading novel chapters.
  • fun_facts.py: Functions for fetching fun facts.
  • agreement.py: Manages the user agreement dialog and logic.
  • olympic_utils.py: Functions for fetching and displaying Olympic medal rankings.

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome contributions including but not limited to:

  • Bug fixes
  • New features
  • Documentation improvements

Developer

Disclaimer

This application is intended for personal use and educational purposes only. The developers are not responsible for any misuse of the application. Please respect copyright laws and the terms of service of the websites you interact with.

License

This project is licensed under the MIT License. For more details, please refer to the LICENSE file.