|
@@ 3607-3624 (lines=18) @@
|
| 3604 |
|
} |
| 3605 |
|
|
| 3606 |
|
|
| 3607 |
|
class GloryOwlComix(GenericBlogspotComic): |
| 3608 |
|
"""Class to retrieve Glory Owl comics.""" |
| 3609 |
|
name = 'gloryowl' |
| 3610 |
|
long_name = 'Glory Owl' |
| 3611 |
|
url = 'http://gloryowlcomix.blogspot.fr' |
| 3612 |
|
_categories = ('NSFW', 'FRANCAIS') |
| 3613 |
|
first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
| 3614 |
|
|
| 3615 |
|
@classmethod |
| 3616 |
|
def get_comic_info(cls, soup, link): |
| 3617 |
|
"""Get information about a particular comics.""" |
| 3618 |
|
title = soup.find('title').string |
| 3619 |
|
imgs = soup.find_all('link', rel='image_src') |
| 3620 |
|
author = soup.find('a', rel='author').string |
| 3621 |
|
return { |
| 3622 |
|
'img': [i['href'] for i in imgs], |
| 3623 |
|
'author': author, |
| 3624 |
|
'title': title, |
| 3625 |
|
} |
| 3626 |
|
|
| 3627 |
|
|
|
@@ 3521-3538 (lines=18) @@
|
| 3518 |
|
return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
| 3519 |
|
|
| 3520 |
|
|
| 3521 |
|
class TuMourrasMoinsBete(GenericBlogspotComic): |
| 3522 |
|
"""Class to retrieve Tu Mourras Moins Bete comics.""" |
| 3523 |
|
name = 'mourrasmoinsbete' |
| 3524 |
|
long_name = 'Tu Mourras Moins Bete' |
| 3525 |
|
url = 'http://tumourrasmoinsbete.blogspot.fr' |
| 3526 |
|
_categories = ('FRANCAIS', ) |
| 3527 |
|
first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
| 3528 |
|
|
| 3529 |
|
@classmethod |
| 3530 |
|
def get_comic_info(cls, soup, link): |
| 3531 |
|
"""Get information about a particular comics.""" |
| 3532 |
|
title = soup.find('title').string |
| 3533 |
|
imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
| 3534 |
|
author = soup.find('span', itemprop='author').string |
| 3535 |
|
return { |
| 3536 |
|
'img': [i['src'] for i in imgs], |
| 3537 |
|
'author': author, |
| 3538 |
|
'title': title, |
| 3539 |
|
} |
| 3540 |
|
|
| 3541 |
|
|