1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 08:22:56 +01:00
No description
Find a file
2015-12-14 17:30:59 -06:00
sites Xenforo option: stop-after 2015-12-14 17:30:59 -06:00
.gitignore Allow logging in to sites, to view hidden things 2015-10-28 18:06:19 -05:00
cover.py Generate covers 2015-11-11 00:39:41 -08:00
epub.py Footnotes off in their own file 2015-11-30 20:10:58 -06:00
fetch.py Allow logging in to sites, to view hidden things 2015-10-28 18:06:19 -05:00
leech.py Let sites define their own custom arguments 2015-12-05 01:34:20 -06:00
README.markdown Update read me 2014-05-12 19:16:10 -05:00
requirements.txt Generate covers 2015-11-11 00:39:41 -08:00

Leech

Let's say you want to read some sort of fiction. You're a fan of it, perhaps. But mobile websites are kind of non-ideal, so you'd like a proper ebook made from whatever you're reading.

Setup

You'll need python3, BeautifulSoup, and html5lib. If you don't have them, this will make them show up:

$ pip install -r requirements.txt

Usage

$ python3 leech.py [[URL]]

A new file will appear named Title of the Story.epub.

If you want to put it on a Kindle you'll have to convert it. I'd recommend Calibre, though you could also try using kindlegen directly.

Supports

  • Fanfiction.net
  • Sta.sh
  • DeviantArt galleries/collections

Contributing

If you submit a pull request to add support for another site, I will nigh-certainly accept it.

Run EpubCheck on epubs you generate to make sure they're not breaking.