@@ 4312-4328 (lines=17) @@ | ||
4309 | # Also on http://ubertoolcomic.com |
|
4310 | # Also on https://tapastic.com/series/ubertool |
|
4311 | name = 'ubertool-tumblr' |
|
4312 | long_name = 'Ubertool (from Tumblr)' |
|
4313 | url = 'https://ubertool.tumblr.com' |
|
4314 | _categories = ('UBERTOOL', ) |
|
4315 | ||
4316 | ||
4317 | class LittleLifeLinesTumblr(GenericTumblrV1): |
|
4318 | """Class to retrieve Little Life Lines comics.""" |
|
4319 | # Also on http://www.littlelifelines.com |
|
4320 | name = 'life-tumblr' |
|
4321 | long_name = 'Little Life Lines (from Tumblr)' |
|
4322 | url = 'https://little-life-lines.tumblr.com' |
|
4323 | ||
4324 | ||
4325 | class TheyCanTalk(GenericTumblrV1): |
|
4326 | """Class to retrieve They Can Talk comics.""" |
|
4327 | name = 'theycantalk' |
|
4328 | long_name = 'They Can Talk' |
|
4329 | url = 'http://theycantalk.com' |
|
4330 | ||
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, |