@@ 3725-3742 (lines=18) @@ | ||
3722 | } |
|
3723 | ||
3724 | ||
3725 | class GloryOwlComix(GenericBlogspotComic): |
|
3726 | """Class to retrieve Glory Owl comics.""" |
|
3727 | name = 'gloryowl' |
|
3728 | long_name = 'Glory Owl' |
|
3729 | url = 'http://gloryowlcomix.blogspot.fr' |
|
3730 | _categories = ('NSFW', 'FRANCAIS') |
|
3731 | first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
|
3732 | ||
3733 | @classmethod |
|
3734 | def get_comic_info(cls, soup, link): |
|
3735 | """Get information about a particular comics.""" |
|
3736 | title = soup.find('title').string |
|
3737 | imgs = soup.find_all('link', rel='image_src') |
|
3738 | author = soup.find('a', rel='author').string |
|
3739 | return { |
|
3740 | 'img': [i['href'] for i in imgs], |
|
3741 | 'author': author, |
|
3742 | 'title': title, |
|
3743 | } |
|
3744 | ||
3745 | ||
@@ 3639-3656 (lines=18) @@ | ||
3636 | return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
|
3637 | ||
3638 | ||
3639 | class TuMourrasMoinsBete(GenericBlogspotComic): |
|
3640 | """Class to retrieve Tu Mourras Moins Bete comics.""" |
|
3641 | name = 'mourrasmoinsbete' |
|
3642 | long_name = 'Tu Mourras Moins Bete' |
|
3643 | url = 'http://tumourrasmoinsbete.blogspot.fr' |
|
3644 | _categories = ('FRANCAIS', ) |
|
3645 | first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
|
3646 | ||
3647 | @classmethod |
|
3648 | def get_comic_info(cls, soup, link): |
|
3649 | """Get information about a particular comics.""" |
|
3650 | title = soup.find('title').string |
|
3651 | imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
|
3652 | author = soup.find('span', itemprop='author').string |
|
3653 | return { |
|
3654 | 'img': [i['src'] for i in imgs], |
|
3655 | 'author': author, |
|
3656 | 'title': title, |
|
3657 | } |
|
3658 | ||
3659 |