https://github.com/macbre/mobify
Download a webpage as an e-book
https://github.com/macbre/mobify
ebook epub kindle medium mobi readthedocs scraping-websites webpage
Last synced: about 1 year ago
JSON representation
Download a webpage as an e-book
- Host: GitHub
- URL: https://github.com/macbre/mobify
- Owner: macbre
- License: mit
- Created: 2015-10-09T16:50:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T12:47:06.000Z (about 1 year ago)
- Last Synced: 2025-04-11T04:46:19.571Z (about 1 year ago)
- Topics: ebook, epub, kindle, medium, mobi, readthedocs, scraping-websites, webpage
- Language: Python
- Size: 868 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mobify
------
Download a webpage as an e-book
## Install
[](https://pypi.python.org/pypi/mobify)
```
pip install mobify
```
You may need to run `sudo apt-get install zlib1g-dev` if `lxml` install fails (`python3.4-dev` package is required as well to compile `lxml`).
#### virtualenv
```
virtualenv --system-site-packages env3 -p python3
pip install -U -e .
```
### For Kindle users
Your Kindle supports epub files.
## Usage
```
mobify "http://histmag.org/william-wallace-bohater-szkotow-bohater-popkultury-11698"
```
Or you can render a multi-chapter ebook from several URLs (simply separate them with spaces):
```
mobify "http://histmag.org/william-wallace-bohater-szkotow-bohater-popkultury-11698" "http://histmag.org/Historia-Szkocji-10-dat-ktore-powinienes-znac-10028"
```
epub and mobi files will be saved in your working directory.
You can force a specific source to be used to parse the URL:
```
mobify 'https://deeplearningsandbox.com/how-to-build-an-image-recognition-system-using-keras-and-tensorflow-for-a-1000-everyday-object-559856e04699#.oqknumtc6' --source MediumSource
```
## Debugging
Simply set `DEBUG` env variable to `1`.
```
DEBUG=1 mobify ...
```
## Supported sources
* Blogspot
* dzieje.pl
* histmag.org
* medium.com
* oreilly.com/ideas
* readthedocs.io
* Tumblr
* Wikipedia