@@ 3321-3344 (lines=24) @@ | ||
3318 | 'description': desc, |
|
3319 | 'author': author, |
|
3320 | 'day': day.day, |
|
3321 | 'month': day.month, |
|
3322 | 'year': day.year, |
|
3323 | 'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], |
|
3324 | } |
|
3325 | ||
3326 | ||
3327 | class GloryOwlComix(GenericNavigableComic): |
|
3328 | """Class to retrieve Glory Owl comics.""" |
|
3329 | name = 'gloryowl' |
|
3330 | long_name = 'Glory Owl' |
|
3331 | url = 'http://gloryowlcomix.blogspot.fr' |
|
3332 | _categories = ('NSFW', 'FRANCAIS') |
|
3333 | get_first_comic_link = simulate_first_link |
|
3334 | first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' |
|
3335 | ||
3336 | @classmethod |
|
3337 | def get_navi_link(cls, last_soup, next_): |
|
3338 | """Get link to next or previous comic.""" |
|
3339 | return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
|
3340 | ||
3341 | @classmethod |
|
3342 | def get_comic_info(cls, soup, link): |
|
3343 | """Get information about a particular comics.""" |
|
3344 | title = soup.find('title').string |
|
3345 | imgs = soup.find_all('link', rel='image_src') |
|
3346 | author = soup.find('a', rel='author').string |
|
3347 | return { |
|
@@ 3254-3277 (lines=24) @@ | ||
3251 | 'alt': alt, |
|
3252 | 'img': [i['src'] for i in imgs], |
|
3253 | # 'text': text, |
|
3254 | 'day': day.day, |
|
3255 | 'month': day.month, |
|
3256 | 'year': day.year, |
|
3257 | } |
|
3258 | ||
3259 | ||
3260 | class TuMourrasMoinsBete(GenericNavigableComic): |
|
3261 | """Class to retrieve Tu Mourras Moins Bete comics.""" |
|
3262 | name = 'mourrasmoinsbete' |
|
3263 | long_name = 'Tu Mourras Moins Bete' |
|
3264 | url = 'http://tumourrasmoinsbete.blogspot.fr' |
|
3265 | _categories = ('FRANCAIS', ) |
|
3266 | get_first_comic_link = simulate_first_link |
|
3267 | first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' |
|
3268 | ||
3269 | @classmethod |
|
3270 | def get_navi_link(cls, last_soup, next_): |
|
3271 | """Get link to next or previous comic.""" |
|
3272 | return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') |
|
3273 | ||
3274 | @classmethod |
|
3275 | def get_comic_info(cls, soup, link): |
|
3276 | """Get information about a particular comics.""" |
|
3277 | title = soup.find('title').string |
|
3278 | imgs = soup.find('div', itemprop='description articleBody').find_all('img') |
|
3279 | author = soup.find('span', itemprop='author').string |
|
3280 | return { |