Code Monkey home page Code Monkey logo

web_to_epub's Introduction

web_to_epub

Just a new-newbie personal project to read offline webnovels done with online tutorials.

Just get the .exe file or the .py (execute them on your IDE or with the CMD using Python, ie writing "python epub_converter.py") files (need both epub_converter.py AND functions.py) and it should prompt a CMD window from which you should be able to download and make epubs of online novels by following instructions (just copy paste ToC/Chapter link and choose whether you want it all downloaded or if you prefer a specific range of chapters).

If you make use of the py files, you will need to install the necessary modules though. You can also do that with the CMD: "pip install [module name]" (You will be notified of the lacking modules by the script itself). Naturally, you need the "functions.py" file in the same directory as "epub_converter.py" for it to work properly.

As of now, you should only be able to safely(?) download novels from RoyalRoad and WuxiaWorld.

It works most of times, but during my tests I found that several times the program failed because it took too much time downloading the files. In that case, I can only suggest to retry, maybe closing some background apps will help. I made few tests, and downloading around 1300 chapters of Overgeared took around 20 minutes, so yeah. Please be patient.

If you find bugs, errors or simply have suggestions or even requests, do not hesitate to tell me so. I'm very unexperienced with Github and programming in general and of course I'm very busy with real life, so sorry if I will not reply or address issues soon. I mean, I'm really doing this just to make it easier for me to read stuff offline to be honest. Though it's interesting and funny to try to make it workable for other people as well.

web_to_epub's People

Contributors

izanaginookami10 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

web_to_epub's Issues

Problem with some characters in title

I got this error:

Traceback (most recent call last):
  File "D:\_\bin\Web-to-epub\epub_converter.py", line 199, in <module>
    chapter_title = f.clean('raw-' + file_name + '.html', 'clean-'
  File "D:\_\bin\Web-to-epub\functions.py", line 320, in clean
    chapter, chapter_title = get_chapter_content(file_name_in, info,
  File "D:\_\bin\Web-to-epub\functions.py", line 228, in get_chapter_content
    with open(debug_folder + '\\' + chapter_title + '.html', 'w',
FileNotFoundError: [Errno 2] No such file or directory: '_debug About — Godot Engine (stable) documentation in English\\I/O — Godot Engine (stable) documentation in English.html'

I believe the issue to be related to the '/' in the title.

You're probably saving each page with the title, and the '/' isn't a valid filename character.

The link it's failing on is:

https://docs.godotengine.org/en/stable/tutorials/io/index.html

Enhancement

Works flawlessly.
Just a little thing. If 'n' is selected to download the whole novel then maybe the resulting epub file's title should not contain chapter_s and chapter_e but only thr novel title.

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.