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,21 @@
from .gomanga_co import GoMangaCo
from .helpers.std import Std
class HentaiCafe(GoMangaCo, Std):
_name_re = r'\.cafe(?:/manga/read)?/([^/]+)/'
_content_str = '{}/{}/'
_chapters_selector = '.content .last .x-btn' # TODO
def get_archive_name(self) -> str:
return 'archive_{:0>2}'.format(self.chapter_id)
def get_chapter_index(self) -> str:
return str(self.chapter_id)
def get_cover(self) -> str:
return self._cover_from_content('.entry-content img')
main = HentaiCafe