@@ 1824-1841 (lines=18) @@ | ||
1821 | } |
|
1822 | ||
1823 | ||
1824 | class BigFootJustice(GenericNavigableComic): |
|
1825 | """Class to retrieve Big Foot Justice comics.""" |
|
1826 | # Also on http://tapastic.com/series/bigfoot-justice |
|
1827 | name = 'bigfoot' |
|
1828 | long_name = 'Big Foot Justice' |
|
1829 | url = 'http://bigfootjustice.com' |
|
1830 | get_first_comic_link = get_a_navi_navifirst |
|
1831 | get_navi_link = get_a_navi_comicnavnext_navinext |
|
1832 | ||
1833 | @classmethod |
|
1834 | def get_comic_info(cls, soup, link): |
|
1835 | """Get information about a particular comics.""" |
|
1836 | imgs = soup.find('div', id='comic').find_all('img') |
|
1837 | assert all(i['title'] == i['alt'] for i in imgs) |
|
1838 | title = ' '.join(i['title'] for i in imgs) |
|
1839 | return { |
|
1840 | 'img': [i['src'] for i in imgs], |
|
1841 | 'title': title, |
|
1842 | } |
|
1843 | ||
1844 | ||
@@ 2837-2853 (lines=17) @@ | ||
2834 | } |
|
2835 | ||
2836 | ||
2837 | class BuniComic(GenericNavigableComic): |
|
2838 | """Class to retrieve Buni Comics.""" |
|
2839 | name = 'buni' |
|
2840 | long_name = 'BuniComics' |
|
2841 | url = 'http://www.bunicomic.com' |
|
2842 | get_first_comic_link = get_a_comicnavbase_comicnavfirst |
|
2843 | get_navi_link = get_link_rel_next |
|
2844 | ||
2845 | @classmethod |
|
2846 | def get_comic_info(cls, soup, link): |
|
2847 | """Get information about a particular comics.""" |
|
2848 | imgs = soup.find('div', id='comic').find_all('img') |
|
2849 | assert all(i['alt'] == i['title'] for i in imgs) |
|
2850 | assert len(imgs) == 1, imgs |
|
2851 | return { |
|
2852 | 'img': [i['src'] for i in imgs], |
|
2853 | 'title': imgs[0]['title'], |
|
2854 | } |
|
2855 | ||
2856 |