Git Product home page Git Product logo

webnovel2ebook's Introduction

THIS PROGRAM IS NO LONGER MAINTAINED

Check out seba11998's fork for a more up-to-date version.

webNovel2eBook

This Python script will download chapters from novels availaible on Qidan International aka webnovel.com and saves them into the .epub format.

Getting Started

To run this script you'll need to have Python 3.6.1 install, which you can find here.

Additionally you'll need PhantomJS, which you can find here. After downloading PhantomJS extract the zip file and copy the executeble from the bin folder into the folder the script is located in.

Features

  • Download and save you favorite Novels from webnovel.com into a .epub file
  • Automatically adds some metadata like author, title, series names and cover
  • Grabs the list of Novel as well as available chapters and metadata in realtime

Prerequisites

As mentioned before this script was written for Python version 3.6.1. It may work with other versions too but none are tested. Also you'll need selenium, beautifulsoup and requests. Do get them just open a terminal, cd to the folder where the program is located and run:

pip install -r requirements.txt

or run:

pip install beautifulsoup4
pip install requests
pip install selenium

Usage

Before running the script make sure you copied PhantomJS into the project folder. If you running something else then Windows, you'll need to change the name of the PhantomJS executable in webnovel2ebook.py on line 38.

Navigate to the folder using the console then write:

python webnovel2ebook.py

if you didn't add Python to the PATH variable during the installation or afterwards the write

path/where/you/installed/python.exe webnovel2ebook.py

then you shoud see a list of categorys. Enter a number to select a category which then gives you a list of Novels to choose from. And again enter a number to choose a novel. Afterwards the program will gather chapter information and metadata. When everything is finished it'll ask for the starting chapter and the end chapter. Just enter the chapters you want and hit enter. Now it should download the chapters you wanted and will save them into an .epub file that is located in the folder the script is located in.

Keep in mind!

Although the code works as far as I know there a a lot of small bugs that I have yet to fix. If you come across some of them feel free to let me know so I have a general idea what is still necesarry to fix.

ToDo list

  • Chapternames sometimes are not displayed correctly
  • newArrivals und matureBooks don't work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone on stackexchange who helped me in my most dire times

Want to support a poor student?

Donate

webnovel2ebook's People

Contributors

michaelguardian avatar mrhacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

webnovel2ebook's Issues

security warning

Installing the dependencies in the supplied requirements.txt files breaks the critical safety check Python auditing tool.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.