mirror of
https://gh.wpcy.net/https://github.com/bohdanbobrowski/blog2epub.git
synced 2026-04-24 02:36:23 +08:00
Convert blog (blogspot.com, wordpress.com...) or any website to epub using GUI, CLI or Python.
https://github.com/bohdanbobrowski/blog2epub
blogbloggingebookebook-downloaderebook-generatorebook-readerepub-generatorguilinuxlinux-desktopmacoswebsite-archivewindows
| .github/workflows | ||
| assets | ||
| blog2epub | ||
| packages/aur | ||
| .gitignore | ||
| .pylintrc | ||
| android.txt | ||
| blog2epub.appdata.xml | ||
| blog2epub.desktop | ||
| blog2epub_linux.spec | ||
| blog2epub_macos.spec | ||
| blog2epub_windows.spec | ||
| blog2epubcli.py | ||
| blog2epubkivy.py | ||
| build_linux.sh | ||
| build_macos.sh | ||
| build_windows.bat | ||
| buildozer.spec | ||
| CHANGELOG.md | ||
| com.bohdanbobrowski.blog2epub.json | ||
| index.html | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| requirements.dev.txt | ||
| requirements.txt | ||
| setup.py | ||
blog2epub
Convert blog to epub using command line or GUI.
Supported blogs:
- *.blogspot.com
- *.wordpress.com and some blogs based on WordPress
Main features
- command line (CLI) and graphic user interface (GUI)
- script downloads all text contents of selected blog to epub file,
- if it's possible, it includes post comments,
- images are downsized (to maximum 800/600px) and converted to grayscale,
- one post = one epub chapter,
- chapters are sorted by date ascending,
- cover is generated automatically from downloaded images.
Example covers
|
|
|
|
Installation
- for Windows and macOS users: available builds
- python3 setup.py install
Running froum sources
git clone git@github.com:bohdanbobrowski/blog2epub.git
cd blog2epub
python -m venv venv
source ./venv/bin/activate
pip install -r ./requirements.txt
./blog2epubgui.py
Screenshots of GUI
Windows 10
macOS
Linux
Mint 21.2 Cinnamon
CLI
blog2epub [blog url] <parameters>
Parameters
-l/--limit=[x] - limit epub file to x posts
-s/--skip=[x] - skip x latest posts
-q/--images-quality=[0-100] - included images quality (default is 40)
-n/--no-images - don't include images
Examples
blog2epub starybezpiek.blogspot.com
blog2epub velosov.blogspot.com -l=10
blog2epub poznanskiehistorie.blogspot.com -q=100
blog2epub classicameras.blogspot.com --limit=10 --no-images
Planned features and known bugs
- utilize GitHub Pages for this project documentation
- there are some bugs in wordpress.com crawler
- Linux app/package(s)
- Android app
- code needs some refactor: classes are too "nested" within each other
- more crawlers (ex. GitHub Pages 🙃)
- improve existing crawlers (allow)
- improve GUI - configuration, allow to save in selected place etc.
Change Log
v1.2.6 - 2024-03-30
bugfix release
- resistance to broken links
- atom feed when skipped
- better comments support
- more random cover generator