Code Duplication    Length = 18-18 lines in 2 locations

comics.py 2 locations

@@ 3520-3537 (lines=18) @@
3517
        }
3518
3519
3520
class GloryOwlComix(GenericBlogspotComic):
3521
    """Class to retrieve Glory Owl comics."""
3522
    name = 'gloryowl'
3523
    long_name = 'Glory Owl'
3524
    url = 'http://gloryowlcomix.blogspot.fr'
3525
    _categories = ('NSFW', 'FRANCAIS')
3526
    first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html'
3527
3528
    @classmethod
3529
    def get_comic_info(cls, soup, link):
3530
        """Get information about a particular comics."""
3531
        title = soup.find('title').string
3532
        imgs = soup.find_all('link', rel='image_src')
3533
        author = soup.find('a', rel='author').string
3534
        return {
3535
            'img': [i['href'] for i in imgs],
3536
            'author': author,
3537
            'title': title,
3538
        }
3539
3540
@@ 3459-3476 (lines=18) @@
3456
        return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link')
3457
3458
3459
class TuMourrasMoinsBete(GenericBlogspotComic):
3460
    """Class to retrieve Tu Mourras Moins Bete comics."""
3461
    name = 'mourrasmoinsbete'
3462
    long_name = 'Tu Mourras Moins Bete'
3463
    url = 'http://tumourrasmoinsbete.blogspot.fr'
3464
    _categories = ('FRANCAIS', )
3465
    first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html'
3466
3467
    @classmethod
3468
    def get_comic_info(cls, soup, link):
3469
        """Get information about a particular comics."""
3470
        title = soup.find('title').string
3471
        imgs = soup.find('div', itemprop='description articleBody').find_all('img')
3472
        author = soup.find('span', itemprop='author').string
3473
        return {
3474
            'img': [i['src'] for i in imgs],
3475
            'author': author,
3476
            'title': title,
3477
        }
3478
3479