|
@@ 3510-3527 (lines=18) @@
|
| 3507 |
|
} |
| 3508 |
|
|
| 3509 |
|
|
| 3510 |
|
class GloryOwlComix(GenericBlogspotComic): |
| 3511 |
|
"""Class to retrieve Glory Owl comics.""" |
| 3512 |
|
name = 'gloryowl' |
| 3513 |
|
long_name = 'Glory Owl' |
| 3514 |
|
url = 'http://gloryowlcomix.blogspot.fr' |
| 3515 |
|
_categories = ('NSFW', 'FRANCAIS') |
| 3516 |
|
first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
| 3517 |
|
|
| 3518 |
|
@classmethod |
| 3519 |
|
def get_comic_info(cls, soup, link): |
| 3520 |
|
"""Get information about a particular comics.""" |
| 3521 |
|
title = soup.find('title').string |
| 3522 |
|
imgs = soup.find_all('link', rel='image_src') |
| 3523 |
|
author = soup.find('a', rel='author').string |
| 3524 |
|
return { |
| 3525 |
|
'img': [i['href'] for i in imgs], |
| 3526 |
|
'author': author, |
| 3527 |
|
'title': title, |
| 3528 |
|
} |
| 3529 |
|
|
| 3530 |
|
|
|
@@ 3425-3442 (lines=18) @@
|
| 3422 |
|
return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
| 3423 |
|
|
| 3424 |
|
|
| 3425 |
|
class TuMourrasMoinsBete(GenericBlogspotComic): |
| 3426 |
|
"""Class to retrieve Tu Mourras Moins Bete comics.""" |
| 3427 |
|
name = 'mourrasmoinsbete' |
| 3428 |
|
long_name = 'Tu Mourras Moins Bete' |
| 3429 |
|
url = 'http://tumourrasmoinsbete.blogspot.fr' |
| 3430 |
|
_categories = ('FRANCAIS', ) |
| 3431 |
|
first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
| 3432 |
|
|
| 3433 |
|
@classmethod |
| 3434 |
|
def get_comic_info(cls, soup, link): |
| 3435 |
|
"""Get information about a particular comics.""" |
| 3436 |
|
title = soup.find('title').string |
| 3437 |
|
imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
| 3438 |
|
author = soup.find('span', itemprop='author').string |
| 3439 |
|
return { |
| 3440 |
|
'img': [i['src'] for i in imgs], |
| 3441 |
|
'author': author, |
| 3442 |
|
'title': title, |
| 3443 |
|
} |
| 3444 |
|
|
| 3445 |
|
|