Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 months 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 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T13:00:03.000Z (4 months ago)
- Last Synced: 2024-10-22T21:09:43.662Z (4 months ago)
- Topics: ebook, epub, kindle, medium, mobi, readthedocs, scraping-websites, webpage
- Language: Python
- Size: 861 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 13
-
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