Code Duplication    Length = 18-18 lines in 2 locations

comics.py 2 locations

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