@@ 4312-4328 (lines=17) @@ | ||
4309 | # Also on http://www.sephko.com |
|
4310 | name = 'sephko' |
|
4311 | long_name = 'Sephko' |
|
4312 | url = 'https://sephko.tumblr.com' |
|
4313 | ||
4314 | ||
4315 | class BlazersAtDawn(GenericTumblrV1): |
|
4316 | """Class to retrieve Blazers At Dawn Comics.""" |
|
4317 | name = 'blazers' |
|
4318 | long_name = 'Blazers At Dawn' |
|
4319 | url = 'http://blazersatdawn.tumblr.com' |
|
4320 | ||
4321 | ||
4322 | class ArtByMoga(GenericEmptyComic, GenericTumblrV1): # Deactivated because it downloads too many things |
|
4323 | """Class to retrieve Art By Moga Comics.""" |
|
4324 | name = 'moga' |
|
4325 | long_name = 'Art By Moga' |
|
4326 | url = 'http://artbymoga.tumblr.com' |
|
4327 | ||
4328 | ||
4329 | class VerbalVomitTumblr(GenericTumblrV1): |
|
4330 | """Class to retrieve Verbal Vomit comics.""" |
|
4331 | # Also on http://www.verbal-vomit.com |
|
@@ 730-745 (lines=16) @@ | ||
727 | name = 'nedroid' |
|
728 | long_name = 'NeDroid' |
|
729 | url = 'http://nedroid.com' |
|
730 | get_first_comic_link = get_div_navfirst_a |
|
731 | get_navi_link = get_link_rel_next |
|
732 | get_url_from_link = join_cls_url_to_href |
|
733 | ||
734 | @classmethod |
|
735 | def get_comic_info(cls, soup, link): |
|
736 | """Get information about a particular comics.""" |
|
737 | short_url_re = re.compile('^%s/\\?p=([0-9]*)' % cls.url) |
|
738 | short_url = cls.get_url_from_link(soup.find('link', rel='shortlink')) |
|
739 | num = int(short_url_re.match(short_url).groups()[0]) |
|
740 | imgs = soup.find('div', id='comic').find_all('img') |
|
741 | assert len(imgs) == 1 |
|
742 | title = imgs[0]['alt'] |
|
743 | title2 = imgs[0]['title'] |
|
744 | return { |
|
745 | 'short_url': short_url, |
|
746 | 'title': title, |
|
747 | 'title2': title2, |
|
748 | 'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], |