GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - webnoveltoepub-core/WebnovelToEpub: Webnovel sites converting into a Ebook/EPUB with Python

BranchesTags
Open more actions menu

Latest commit

 

History

67 Commits
67 Commits

Folders and files

NameName
Last commit message
Last commit date
App
App
 
 
.gitignore
.gitignore
 
 
CONFIG.md
CONFIG.md
 
 
EXAMPLE.md
EXAMPLE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

This Python-based application is a configurable automated converter that transforms web-based books into an eBook/EPUB format. It mainly uses the libraries Requests, BeautifulSoup and EbookLib for the converting progess into EPUB.

Requirements

⪢ 3.11.8 Python or higher

Installing via requirements.txt

#!/bin/bash
git clone https://github.com/TheUnixDemon/Website2Book
cd ./Website2Book
pip install -r requirements.txt

How to use

Before you can actually use the application for fetching a web book you have to create an configuration entry for your targeted server within the file configurations/config.json.
Here to the Server configuration Guide and here to an example how it can looks like.

After the installation of all requirements and creating a configuration entry for you target server you can start the application via executing the file main.py.

#!/bin/bash
python main.py --help
...
python main.py --title "Hollow Fantasy" --author "TheCreatorHimself" --cover "https://novelsite/hollowfantasy/hollowfantasycover.png" --url "https://novelsite/hollowfantasy/overview.html"
...

It's recommented for configuration purposes to use --debug for more informations about the current configuration status and it's responses to that. If you want to have a deeper view into the web scraper part you should use --debughtml. --debughtml shows the very process of the web scraper part related to your configuration.

There are some other arguments like --moreHumanLike, --humanLike, --latency and --timeout. They all are related to the run-time.

--timeout is the only one of these that sets the timelimit of a connection. After the timelimit is reached the request runs into a timeout error and closes the connection and after some time reconnects with the server to try the connection again.

Cookies

Everybody likes cookies! But websites love them a bit to much in my opinion. So I implemented a solution(even if not that clean and smooth). If a website gives the http error 403 as return, my program requests the user to put in a cookie in a text format. To get these cookies you should use your browser and get in the inspect mode.

About

Webnovel sites converting into a Ebook/EPUB with Python

Topics

configurableepubpythonscraper-pythonwebnovel

Resources

Readme
GPL-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.