|
@@ 3672-3689 (lines=18) @@
|
| 3669 |
|
class GloryOwlComix(GenericBlogspotComic): |
| 3670 |
|
"""Class to retrieve Glory Owl comics.""" |
| 3671 |
|
name = 'gloryowl' |
| 3672 |
|
long_name = 'Glory Owl' |
| 3673 |
|
url = 'http://gloryowlcomix.blogspot.fr' |
| 3674 |
|
_categories = ('NSFW', 'FRANCAIS') |
| 3675 |
|
first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
| 3676 |
|
|
| 3677 |
|
@classmethod |
| 3678 |
|
def get_comic_info(cls, soup, link): |
| 3679 |
|
"""Get information about a particular comics.""" |
| 3680 |
|
title = soup.find('title').string |
| 3681 |
|
imgs = soup.find_all('link', rel='image_src') |
| 3682 |
|
author = soup.find('a', rel='author').string |
| 3683 |
|
return { |
| 3684 |
|
'img': [i['href'] for i in imgs], |
| 3685 |
|
'author': author, |
| 3686 |
|
'title': title, |
| 3687 |
|
} |
| 3688 |
|
|
| 3689 |
|
|
| 3690 |
|
class GenericSquareSpace(GenericNavigableComic): |
| 3691 |
|
"""Generic class to retrieve comics using SquareSpace.""" |
| 3692 |
|
_categories = ('SQUARESPACE', ) |
|
@@ 3586-3603 (lines=18) @@
|
| 3583 |
|
class TuMourrasMoinsBete(GenericBlogspotComic): |
| 3584 |
|
"""Class to retrieve Tu Mourras Moins Bete comics.""" |
| 3585 |
|
name = 'mourrasmoinsbete' |
| 3586 |
|
long_name = 'Tu Mourras Moins Bete' |
| 3587 |
|
url = 'http://tumourrasmoinsbete.blogspot.fr' |
| 3588 |
|
_categories = ('FRANCAIS', ) |
| 3589 |
|
first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
| 3590 |
|
|
| 3591 |
|
@classmethod |
| 3592 |
|
def get_comic_info(cls, soup, link): |
| 3593 |
|
"""Get information about a particular comics.""" |
| 3594 |
|
title = soup.find('title').string |
| 3595 |
|
imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
| 3596 |
|
author = soup.find('span', itemprop='author').string |
| 3597 |
|
return { |
| 3598 |
|
'img': [i['src'] for i in imgs], |
| 3599 |
|
'author': author, |
| 3600 |
|
'title': title, |
| 3601 |
|
} |
| 3602 |
|
|
| 3603 |
|
|
| 3604 |
|
class Octopuns(GenericBlogspotComic): |
| 3605 |
|
"""Class to retrieve Octopuns comics.""" |
| 3606 |
|
# Also on http://octopuns.tumblr.com |