@@ 4312-4328 (lines=17) @@ | ||
4309 | # Also on http://www.verbal-vomit.com |
|
4310 | name = 'vomit-tumblr' |
|
4311 | long_name = 'Verbal Vomit (from Tumblr)' |
|
4312 | url = 'http://verbalvomits.tumblr.com' |
|
4313 | ||
4314 | ||
4315 | class LibraryComic(GenericTumblrV1): |
|
4316 | """Class to retrieve LibraryComic.""" |
|
4317 | # Also on http://librarycomic.com |
|
4318 | name = 'library-tumblr' |
|
4319 | long_name = 'LibraryComic (from Tumblr)' |
|
4320 | url = 'https://librarycomic.tumblr.com' |
|
4321 | ||
4322 | ||
4323 | class TizzyStitchBirdTumblr(GenericTumblrV1): |
|
4324 | """Class to retrieve Tizzy Stitch Bird comics.""" |
|
4325 | # Also on http://tizzystitchbird.com |
|
4326 | # Also on https://tapastic.com/series/TizzyStitchbird |
|
4327 | # Also on http://www.webtoons.com/en/challenge/tizzy-stitchbird/list?title_no=50082 |
|
4328 | name = 'tizzy-tumblr' |
|
4329 | long_name = 'Tizzy Stitch Bird (from Tumblr)' |
|
4330 | url = 'http://tizzystitchbird.tumblr.com' |
|
4331 | ||
@@ 730-745 (lines=16) @@ | ||
727 | class NeDroid(GenericNavigableComic): |
|
728 | """Class to retrieve NeDroid comics.""" |
|
729 | name = 'nedroid' |
|
730 | long_name = 'NeDroid' |
|
731 | url = 'http://nedroid.com' |
|
732 | get_first_comic_link = get_div_navfirst_a |
|
733 | get_navi_link = get_link_rel_next |
|
734 | get_url_from_link = join_cls_url_to_href |
|
735 | ||
736 | @classmethod |
|
737 | def get_comic_info(cls, soup, link): |
|
738 | """Get information about a particular comics.""" |
|
739 | short_url_re = re.compile('^%s/\\?p=([0-9]*)' % cls.url) |
|
740 | short_url = cls.get_url_from_link(soup.find('link', rel='shortlink')) |
|
741 | num = int(short_url_re.match(short_url).groups()[0]) |
|
742 | imgs = soup.find('div', id='comic').find_all('img') |
|
743 | assert len(imgs) == 1 |
|
744 | title = imgs[0]['alt'] |
|
745 | title2 = imgs[0]['title'] |
|
746 | return { |
|
747 | 'short_url': short_url, |
|
748 | 'title': title, |