@@ 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 |