1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-09 18:04:27 +01:00
Commit graph

24 commits

Author SHA1 Message Date
David Lynch
5cb887f767 Move image processing into sites
The epub-builder still downloads the image, but all the html-mangling
is done in the extraction process now.

Turns footnotes into a chapter-object, for easier processing later on.
2025-03-22 19:39:16 -05:00
David Lynch
9a2b574b4b Missed a call to _soup in ao3 2024-12-23 21:02:09 -06:00
David Lynch
21834bb5ed _clean takes a base argument and reformats image srcs into absolute urls 2024-11-23 15:30:57 -06:00
David Lynch
a0a057c48c _soup always returns a base URL 2024-11-23 15:15:29 -06:00
David Lynch
f1bd28e942 Fanfiction.net: experiment with falling back to the wayback machine 2021-07-19 15:17:39 -05:00
David Lynch
f25befc237 Decode cloudflare email address protection
Makes a generic _clean function on Site that can be called. Will
probably want to migrate some other generic bits into there after
analysis of what's *really* generic.
2021-03-27 10:46:39 -05:00
David Lynch
dc10e4cf17 FFN: less-destructive attribute clearing 2019-10-17 22:29:01 -05:00
David Lynch
66576048da Fix flake8 errors 2019-05-25 20:03:17 -05:00
David Lynch
868ef4b157 Handle mobile links for FFN 2018-03-30 15:18:57 -05:00
David Lynch
6d52c72c99 Use logging instead of print
Fixes #10
2017-11-04 00:09:09 -05:00
Will Oursler
5bd07a5b90 Splits out ebook generation logic into a seperate module, in anticipation of maybe supporting multiple output formats. 2017-10-12 09:49:32 -04:00
Will Oursler
b78f3c0c77 Fix up the FictionPress site handler.
Updates the comment to a valid fictionpress story. Changes the matches method so it works like the one for FFN. As it is now, it didn't work for me. After this, works on the provided URL and several variants.
2017-10-06 12:28:31 -04:00
David Lynch
eb715366f0 Fix single-chapter fanfiction.net stories 2017-09-22 21:33:20 -05:00
David Lynch
5b4b9a0dc3 Canonicalize URLs 2017-02-23 15:03:23 -06:00
David Lynch
86e36715f1 Set up for Travis 2017-02-08 13:20:14 -06:00
David Lynch
c272bdee29 Support FictionPress 2017-02-03 11:00:25 -06:00
David Lynch
e6343cb1c9 Stories are now made of nested sections/chapters
This is prep-work for improving epub TOC generation a bit.
2017-01-10 00:23:24 -08:00
David Lynch
24fa9aa22d Use a namedtuple for chapters 2016-09-23 13:11:52 -05:00
David Lynch
bff375a8e7 Generate covers 2015-11-11 00:39:41 -08:00
David Lynch
2aba80be24 Change sites strategy to use classes and inheritance 2015-09-14 00:38:02 -05:00
David Lynch
37f20415ec A PEP8 run-through 2014-04-28 15:15:53 -05:00
David Lynch
59cba2fa56 Little bit of feedback 2013-12-29 13:57:25 -06:00
David Lynch
9092386cca Don't die immediately if cleaning fails 2013-12-24 03:03:59 -06:00
David Lynch
91b7ed3917 Split out per-site story extractors 2013-12-24 02:21:23 -06:00