@@ 1820-1837 (lines=18) @@ | ||
1817 | } |
|
1818 | ||
1819 | ||
1820 | class BigFootJustice(GenericNavigableComic): |
|
1821 | """Class to retrieve Big Foot Justice comics.""" |
|
1822 | # Also on http://tapastic.com/series/bigfoot-justice |
|
1823 | name = 'bigfoot' |
|
1824 | long_name = 'Big Foot Justice' |
|
1825 | url = 'http://bigfootjustice.com' |
|
1826 | get_first_comic_link = get_a_navi_navifirst |
|
1827 | get_navi_link = get_a_navi_comicnavnext_navinext |
|
1828 | ||
1829 | @classmethod |
|
1830 | def get_comic_info(cls, soup, link): |
|
1831 | """Get information about a particular comics.""" |
|
1832 | imgs = soup.find('div', id='comic').find_all('img') |
|
1833 | assert all(i['title'] == i['alt'] for i in imgs) |
|
1834 | title = ' '.join(i['title'] for i in imgs) |
|
1835 | return { |
|
1836 | 'img': [i['src'] for i in imgs], |
|
1837 | 'title': title, |
|
1838 | } |
|
1839 | ||
1840 | ||
@@ 2825-2841 (lines=17) @@ | ||
2822 | day = string_to_date(date_str, "%B %d, %Y") |
|
2823 | imgs = soup.find('div', id='comic').find_all('img') |
|
2824 | return { |
|
2825 | 'title': title, |
|
2826 | 'img': [i['src'] for i in imgs], |
|
2827 | 'month': day.month, |
|
2828 | 'year': day.year, |
|
2829 | 'day': day.day, |
|
2830 | } |
|
2831 | ||
2832 | ||
2833 | class BuniComic(GenericNavigableComic): |
|
2834 | """Class to retrieve Buni Comics.""" |
|
2835 | name = 'buni' |
|
2836 | long_name = 'BuniComics' |
|
2837 | url = 'http://www.bunicomic.com' |
|
2838 | get_first_comic_link = get_a_comicnavbase_comicnavfirst |
|
2839 | get_navi_link = get_link_rel_next |
|
2840 | ||
2841 | @classmethod |
|
2842 | def get_comic_info(cls, soup, link): |
|
2843 | """Get information about a particular comics.""" |
|
2844 | imgs = soup.find('div', id='comic').find_all('img') |