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

Support FictionPress

This commit is contained in:
David Lynch 2017-02-03 11:00:25 -06:00
parent 7de0e8d2fd
commit c272bdee29
2 changed files with 8 additions and 0 deletions

View file

@ -29,6 +29,7 @@ Supports
---
* Fanfiction.net
* FictionPress
* ArchiveOfOurOwn
* Yes, it has its own built-in EPUB export, but the formatting is horrible
* Various XenForo-based sites: SpaceBattles and SufficientVelocity, most notably

View file

@ -74,3 +74,10 @@ class FanFictionNet(Site):
print("Trouble cleaning attributes", e)
return text.prettify()
@register
class FictionPress(FanFictionNet):
@staticmethod
def matches(url):
# e.g. https://www.fanfiction.net/s/4109686/3/Taking-Sights
return re.match(r'^https?://www\.fictionpress\.com/s/\d+/?.*', url)