|
@@ 3550-3573 (lines=24) @@
|
| 3547 |
|
} |
| 3548 |
|
|
| 3549 |
|
|
| 3550 |
|
class GloryOwlComix(GenericNavigableComic): |
| 3551 |
|
"""Class to retrieve Glory Owl comics.""" |
| 3552 |
|
name = 'gloryowl' |
| 3553 |
|
long_name = 'Glory Owl' |
| 3554 |
|
url = 'http://gloryowlcomix.blogspot.fr' |
| 3555 |
|
_categories = ('NSFW', 'FRANCAIS') |
| 3556 |
|
get_first_comic_link = simulate_first_link |
| 3557 |
|
first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
| 3558 |
|
|
| 3559 |
|
@classmethod |
| 3560 |
|
def get_navi_link(cls, last_soup, next_): |
| 3561 |
|
"""Get link to next or previous comic.""" |
| 3562 |
|
return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
| 3563 |
|
|
| 3564 |
|
@classmethod |
| 3565 |
|
def get_comic_info(cls, soup, link): |
| 3566 |
|
"""Get information about a particular comics.""" |
| 3567 |
|
title = soup.find('title').string |
| 3568 |
|
imgs = soup.find_all('link', rel='image_src') |
| 3569 |
|
author = soup.find('a', rel='author').string |
| 3570 |
|
return { |
| 3571 |
|
'img': [i['href'] for i in imgs], |
| 3572 |
|
'author': author, |
| 3573 |
|
'title': title, |
| 3574 |
|
} |
| 3575 |
|
|
| 3576 |
|
|
|
@@ 3483-3506 (lines=24) @@
|
| 3480 |
|
} |
| 3481 |
|
|
| 3482 |
|
|
| 3483 |
|
class TuMourrasMoinsBete(GenericNavigableComic): |
| 3484 |
|
"""Class to retrieve Tu Mourras Moins Bete comics.""" |
| 3485 |
|
name = 'mourrasmoinsbete' |
| 3486 |
|
long_name = 'Tu Mourras Moins Bete' |
| 3487 |
|
url = 'http://tumourrasmoinsbete.blogspot.fr' |
| 3488 |
|
_categories = ('FRANCAIS', ) |
| 3489 |
|
get_first_comic_link = simulate_first_link |
| 3490 |
|
first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
| 3491 |
|
|
| 3492 |
|
@classmethod |
| 3493 |
|
def get_navi_link(cls, last_soup, next_): |
| 3494 |
|
"""Get link to next or previous comic.""" |
| 3495 |
|
return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
| 3496 |
|
|
| 3497 |
|
@classmethod |
| 3498 |
|
def get_comic_info(cls, soup, link): |
| 3499 |
|
"""Get information about a particular comics.""" |
| 3500 |
|
title = soup.find('title').string |
| 3501 |
|
imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
| 3502 |
|
author = soup.find('span', itemprop='author').string |
| 3503 |
|
return { |
| 3504 |
|
'img': [i['src'] for i in imgs], |
| 3505 |
|
'author': author, |
| 3506 |
|
'title': title, |
| 3507 |
|
} |
| 3508 |
|
|
| 3509 |
|
|
|
@@ 3269-3292 (lines=24) @@
|
| 3266 |
|
} |
| 3267 |
|
|
| 3268 |
|
|
| 3269 |
|
class EarthExplodes(GenericNavigableComic): |
| 3270 |
|
"""Class to retrieve The Earth Explodes comics.""" |
| 3271 |
|
name = 'earthexplodes' |
| 3272 |
|
long_name = 'The Earth Explodes' |
| 3273 |
|
url = 'http://www.earthexplodes.com' |
| 3274 |
|
get_url_from_link = join_cls_url_to_href |
| 3275 |
|
get_first_comic_link = simulate_first_link |
| 3276 |
|
first_url = 'http://www.earthexplodes.com/comics/000/' |
| 3277 |
|
|
| 3278 |
|
@classmethod |
| 3279 |
|
def get_navi_link(cls, last_soup, next_): |
| 3280 |
|
"""Get link to next or previous comic.""" |
| 3281 |
|
return last_soup.find('a', id='next' if next_ else 'prev') |
| 3282 |
|
|
| 3283 |
|
@classmethod |
| 3284 |
|
def get_comic_info(cls, soup, link): |
| 3285 |
|
"""Get information about a particular comics.""" |
| 3286 |
|
title = soup.find('title').string |
| 3287 |
|
imgs = soup.find('div', id='image').find_all('img') |
| 3288 |
|
alt = imgs[0].get('title', '') |
| 3289 |
|
return { |
| 3290 |
|
'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], |
| 3291 |
|
'title': title, |
| 3292 |
|
'alt': alt, |
| 3293 |
|
} |
| 3294 |
|
|
| 3295 |
|
|