@@ 3555-3572 (lines=18) @@ | ||
3552 | } |
|
3553 | ||
3554 | ||
3555 | class GloryOwlComix(GenericBlogspotComic): |
|
3556 | """Class to retrieve Glory Owl comics.""" |
|
3557 | name = 'gloryowl' |
|
3558 | long_name = 'Glory Owl' |
|
3559 | url = 'http://gloryowlcomix.blogspot.fr' |
|
3560 | _categories = ('NSFW', 'FRANCAIS') |
|
3561 | first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
|
3562 | ||
3563 | @classmethod |
|
3564 | def get_comic_info(cls, soup, link): |
|
3565 | """Get information about a particular comics.""" |
|
3566 | title = soup.find('title').string |
|
3567 | imgs = soup.find_all('link', rel='image_src') |
|
3568 | author = soup.find('a', rel='author').string |
|
3569 | return { |
|
3570 | 'img': [i['href'] for i in imgs], |
|
3571 | 'author': author, |
|
3572 | 'title': title, |
|
3573 | } |
|
3574 | ||
3575 | ||
@@ 3470-3487 (lines=18) @@ | ||
3467 | return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
|
3468 | ||
3469 | ||
3470 | class TuMourrasMoinsBete(GenericBlogspotComic): |
|
3471 | """Class to retrieve Tu Mourras Moins Bete comics.""" |
|
3472 | name = 'mourrasmoinsbete' |
|
3473 | long_name = 'Tu Mourras Moins Bete' |
|
3474 | url = 'http://tumourrasmoinsbete.blogspot.fr' |
|
3475 | _categories = ('FRANCAIS', ) |
|
3476 | first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
|
3477 | ||
3478 | @classmethod |
|
3479 | def get_comic_info(cls, soup, link): |
|
3480 | """Get information about a particular comics.""" |
|
3481 | title = soup.find('title').string |
|
3482 | imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
|
3483 | author = soup.find('span', itemprop='author').string |
|
3484 | return { |
|
3485 | 'img': [i['src'] for i in imgs], |
|
3486 | 'author': author, |
|
3487 | 'title': title, |
|
3488 | } |
|
3489 | ||
3490 |