David Lynch
a0a057c48c
_soup always returns a base URL
2024-11-23 15:15:29 -06:00
David Lynch
9508b00bcb
Rearrange the image options to match cover options
2024-11-23 14:54:12 -06:00
David Lynch
542774543a
Code style fixups, duplication cleanup, PIL textsize removal
2024-11-23 14:22:10 -06:00
Emmanuel C. Jemeni
f557a48ac4
Update image.py
...
Fiction.Live seems to have changed how they host images
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
4e9ad1ed7e
feat: Leech can now download images in xenforo spoilers. The --include-spoilers tag has to be added for Leech to download images in spoilers.
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
34bf962df6
feat: Leech can now compress images to a specific target size
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
55e400b535
fix: Fixes bad transparency mask error
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
162cc620cc
docs: minor sentence refactor
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
e6ad77a9fc
fix: Completely fixes #2 !
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
f6dc5a9ad9
Convert Filepicker.io image URLs to Fiction.live image URLs and warn of potential failure
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
63ac765e41
fix(ebook/__init__.py): Leech will now ignore empty image tags (because apparently that's a thing).
...
feat(ebook/__init__.py): Leech print out more information about the images it is downloading. The number of images in each chapter and the image downloading currently.
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
b1f1c01210
build(.gitignore): modified the .gitignore file so it ignores PyCharm's .idea folder
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
dca26e95ea
feat(ebook/__init__.py): leech checks if an image has an alt attribute and adds one if it doesn't
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
f933020357
refactor(leech.py): minor spelling error fixed
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
71345b2658
fix(Partial-Fix-to-Issue-#2): Leech can now download images however there is no way of disabling this option and this was only tested with stories from fiction.live
...
BREAKING CHANGE:
2024-11-23 13:22:54 -06:00
Idan Dor
1edde92a9d
Fixed whitespacing for flake8.
2024-11-23 13:22:53 -06:00
Idan Dor
31f663c6e0
Added image embedding support for epub
...
Specifically, added image_selector for arbitrary sites that allows
selecting img tags from chapters, downloading them
and embedding them within the resulting epub.
In the case of Pale, this means that the character banners and
extra materials do not require an internet connection to view.
Also made the two pale.json's more consistent (pale.json now correctly
includes the title of the chapters).
2024-11-23 13:22:53 -06:00
IdanDor
7c877ad589
Added examples
2024-11-23 13:22:53 -06:00
David Lynch
59280e4fa7
Bump poetry.lock
2024-11-23 13:22:31 -06:00
David Lynch
7967c59636
Support 2fa for xenforo logins
2024-10-13 00:52:50 -05:00
David Lynch
249221f5d7
Fix questionable questing, which has moved to xenforo2
2024-05-14 22:08:22 -05:00
David Lynch
1f57cd6f07
Basic success-testing on logins
2024-05-14 22:07:05 -05:00
David Lynch
ef9309eb66
Fix xenforo login
2024-05-14 22:06:09 -05:00
David Lynch
7dc6543e44
Fix Wandering Inn
...
Fixes #95
2024-05-14 22:06:09 -05:00
David Lynch
cc423f62bb
Fix the royalroad stolen-content removal
...
They added speak:none to the CSS, and I was strictly checking for a rule
that only contained display:none.
2024-02-10 20:05:49 -06:00
David Lynch
64d77b62db
Improve cloudflare email decoding
...
New format for the protected emails, wrapping a span in an a.
2024-01-28 13:26:34 -06:00
David Lynch
d30e56a518
Strip out the new stolen-content warnings on royalroad
...
They might make these harder to work out in the future, but for now...
2024-01-19 21:34:39 -06:00
David Lynch
9171672663
Pillow 10 removed the deprecated ImageDraw.textsize
2023-11-15 01:18:06 -06:00
David Lynch
2467ee26fe
Update dependencies to newer versions
2023-11-15 00:00:44 -06:00
David Lynch
571a9d3b85
Update package versions
2023-08-06 18:03:51 -05:00
David Lynch
6c692968a4
Use isinstance rather than direct type comparison
2023-08-06 17:56:13 -05:00
David Lynch
03e9d3844f
Add the-sietch.com to xenforo sites
2023-08-06 17:43:51 -05:00
David Lynch
5ddbb310b3
Let xenforo sites cope with index.php URLs
2023-08-06 17:43:28 -05:00
David Lynch
8dd20e17d9
Update github actions to use newer python versions
2023-05-04 10:08:56 -05:00
David Lynch
06cd8998ed
Update poetry.lock
2023-05-04 10:00:33 -05:00
David Lynch
bd74ad0ec3
Update pyproject.toml build-system
2023-05-04 10:00:20 -05:00
David Lynch
f8ab88866f
Merge pull request #91 from flying-sheep/add-pale-lights
...
Add “Pale Lights”
2023-05-04 09:52:12 -05:00
David Lynch
7230f65a68
Add offset/limit options to royalroad
2023-05-04 09:42:13 -05:00
David Lynch
41f24ae1b5
Merge pull request #93 from KeinNiemand/upstream
...
Don't prettify royalroad soup, Fixes #92
2023-05-04 09:41:43 -05:00
KeinNiemand
356bae9a7a
Don't prettify royalroad soup, Fixes #92
2023-05-04 13:17:28 +02:00
Philipp A
e5e9519227
Add pale lights recipe
2023-04-22 22:37:45 +02:00
David Lynch
6895a0eb61
AO3 single-chapter story bugs
2023-03-31 23:51:27 -05:00
David Lynch
fe5ca86d87
Royalroad's markup has changed slightly, fix so title and summary work
2023-03-17 16:06:52 -05:00
David Lynch
b8314341b2
Allow passing in multiple URLs
...
Good trick: `./leech.py examples/practical{1,2,3,4,5,6,7}.json`
2022-10-22 18:05:59 -05:00
David Lynch
c3b28d6169
Merge pull request #82 from 7h0m4s/Update_PracticalGuide_Example_Files
...
Update Practical Guide example json
2022-09-03 14:52:38 -05:00
Thomas Pegoraro
a3496c73b5
-Remove " .entry-wrapper" class from content_selector as the class doesn't exist on the Practical Guide website anymore.
...
- Add Practical Guide book 7 json file.
2022-09-03 13:14:54 +10:00
David Lynch
d81eefa7f3
AO3: use new form helper so this shouldn't break again if fields change
2022-05-13 11:04:25 -05:00
David Lynch
f57db3e1a8
Helper for extracting form data from a soup
2022-05-13 11:04:05 -05:00
David Lynch
e9f704716a
Xenforo: change some of the style-removal
...
It was causing some formatting issues, particularly on Worm fics which
did forum-style sections. (Also, indented text done via margin-left on
divs, which entirely removed the div and ran lines together.)
2022-04-27 11:07:16 -05:00
David Lynch
56bc2b941c
AO3: utf8 field no longer in login form
2022-04-16 18:26:26 -05:00