Added manga-py source

This commit is contained in:
2019-12-14 22:33:14 -05:00
parent 9a4dd4b09b
commit 45067caea6
420 changed files with 18054 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
from .helpers.std import Std
from .mangashiro_net import MangaShiroNet
class SubaPicsCom(MangaShiroNet, Std):
alter_re_name = r'\.(?:com|net)/([^/]+)-chapter-\d+'
chapter_re = r'-chapter-(\d+(?:-\d+)?)'
def get_cover(self) -> str:
return self._cover_from_content('.imgdesc > img')
def get_files(self):
url = self.chapter
parser = self.html_fromstring(url)
items = parser.cssselect('#readerarea img')
return [i.get('src') for i in items]
def book_meta(self) -> dict:
# todo meta
pass
main = SubaPicsCom