| 1 |  |  | #! /usr/bin/python3 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2 |  |  | # vim: set expandtab tabstop=4 shiftwidth=4 : | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3 |  |  | """Module to retrieve webcomics""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5 |  |  | from comic_abstract import GenericComic, get_date_for_comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 6 |  |  | import re | 
            
                                                                                                            
                            
            
                                    
            
            
                | 7 |  |  | from datetime import date, timedelta | 
            
                                                                                                            
                            
            
                                    
            
            
                | 8 |  |  | import datetime | 
            
                                                                                                            
                            
            
                                    
            
            
                | 9 |  |  | from urlfunctions import get_soup_at_url, urljoin_wrapper,\ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 10 |  |  |     convert_iri_to_plain_ascii_uri, load_json_at_url, urlopen_wrapper | 
            
                                                                                                            
                            
            
                                    
            
            
                | 11 |  |  | import json | 
            
                                                                                                            
                            
            
                                    
            
            
                | 12 |  |  | import locale | 
            
                                                                                                            
                            
            
                                    
            
            
                | 13 |  |  | import urllib | 
            
                                                                                                            
                            
            
                                    
            
            
                | 14 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 15 |  |  | DEFAULT_LOCAL = 'en_GB.UTF-8' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 16 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 17 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 18 |  |  | class Xkcd(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 19 |  |  |     """Class to retrieve Xkcd comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 20 |  |  |     name = 'xkcd' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 21 |  |  |     long_name = 'xkcd' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 22 |  |  |     url = 'http://xkcd.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 23 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 24 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 25 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 26 |  |  |         """Generator to get the next comic. Implementation of GenericComic's abstract method.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 27 |  |  |         first_num = last_comic['num'] if last_comic else 0 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 28 |  |  |         last_num = load_json_at_url( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 29 |  |  |             urljoin_wrapper(cls.url, 'info.0.json'))['num'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 30 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 31 |  |  |         for num in range(first_num + 1, last_num + 1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 32 |  |  |             if num != 404: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 33 |  |  |                 json_url = urljoin_wrapper(cls.url, '%d/info.0.json' % num) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 34 |  |  |                 comic = load_json_at_url(json_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 35 |  |  |                 comic['img'] = [comic['img']] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 36 |  |  |                 comic['prefix'] = '%d-' % num | 
            
                                                                                                            
                            
            
                                    
            
            
                | 37 |  |  |                 comic['json_url'] = json_url | 
            
                                                                                                            
                            
            
                                    
            
            
                | 38 |  |  |                 comic['url'] = urljoin_wrapper(cls.url, str(num)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 39 |  |  |                 comic['day'] = int(comic['day']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 40 |  |  |                 comic['month'] = int(comic['month']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 41 |  |  |                 comic['year'] = int(comic['year']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 42 |  |  |                 assert comic['num'] == num | 
            
                                                                                                            
                            
            
                                    
            
            
                | 43 |  |  |                 yield comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 44 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 45 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 46 |  |  | # Helper functions corresponding to get_url_from_link/get_url_from_archive_element | 
            
                                                                                                            
                            
            
                                    
            
            
                | 47 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 48 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 49 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 50 |  |  | def get_href(cls, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 51 |  |  |     """Implementation of get_url_from_link/get_url_from_archive_element.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 52 |  |  |     return link['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 53 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 54 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 55 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 56 |  |  | def join_cls_url_to_href(cls, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 57 |  |  |     """Implementation of get_url_from_link/get_url_from_archive_element.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 58 |  |  |     return urljoin_wrapper(cls.url, link['href']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 59 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 60 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 61 |  |  | class GenericNavigableComic(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 62 |  |  |     """Generic class for "navigable" comics : with first/next arrows. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 63 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 64 |  |  |     This class applies to comic where previous and next comics can be | 
            
                                                                                                            
                            
            
                                    
            
            
                | 65 |  |  |     accessed from a given comic. Once given a starting point (either | 
            
                                                                                                            
                            
            
                                    
            
            
                | 66 |  |  |     the first comic or the last comic retrieved), it will handle the | 
            
                                                                                                            
                            
            
                                    
            
            
                | 67 |  |  |     navigation, the retrieval of the soup object and the setting of | 
            
                                                                                                            
                            
            
                                    
            
            
                | 68 |  |  |     the 'url' attribute on retrieved comics. This limits a lot the | 
            
                                                                                                            
                            
            
                                    
            
            
                | 69 |  |  |     amount of boilerplate code in the different implementation classes. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 70 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 71 |  |  |     The method `get_next_comic` methods is implemented in terms of new | 
            
                                                                                                            
                            
            
                                    
            
            
                | 72 |  |  |     more specialized methods to be implemented/overridden: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 73 |  |  |         - get_first_comic_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 74 |  |  |         - get_navi_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 75 |  |  |         - get_comic_info | 
            
                                                                                                            
                            
            
                                    
            
            
                | 76 |  |  |         - get_url_from_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 77 |  |  |     """ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 78 |  |  |     _categories = ('NAVIGABLE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 79 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 80 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 81 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 82 |  |  |         """Get link to first comics. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 83 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 84 |  |  |         Sometimes this can be retrieved of any comic page, sometimes on | 
            
                                                                                                            
                            
            
                                    
            
            
                | 85 |  |  |         the archive page, sometimes it doesn't exist at all and one has | 
            
                                                                                                            
                            
            
                                    
            
            
                | 86 |  |  |         to iterate backward to find it before hardcoding the result found. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 87 |  |  |         """ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 88 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 89 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 90 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 91 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 92 |  |  |         """Get link to next (or previous - for dev purposes) comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 93 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 94 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 95 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 96 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 97 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 98 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 99 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 100 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 101 |  |  |     def get_url_from_link(cls, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 102 |  |  |         """Get url corresponding to a link. Default implementation is similar to get_href.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 103 |  |  |         return link['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 104 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 105 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 106 |  |  |     def get_next_link(cls, last_soup): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 107 |  |  |         """Get link to next comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 108 |  |  |         link = cls.get_navi_link(last_soup, True) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 109 |  |  |         cls.log("Next link is %s" % link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 110 |  |  |         return link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 111 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 112 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 113 |  |  |     def get_prev_link(cls, last_soup): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 114 |  |  |         """Get link to previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 115 |  |  |         link = cls.get_navi_link(last_soup, False) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 116 |  |  |         cls.log("Prev link is %s" % link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 117 |  |  |         return link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 118 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 119 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 120 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 121 |  |  |         """Generic implementation of get_next_comic for navigable comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 122 |  |  |         url = last_comic['url'] if last_comic else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 123 |  |  |         cls.log("starting 'get_next_comic' from %s" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 124 |  |  |         next_comic = \ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 125 |  |  |             cls.get_next_link(get_soup_at_url(url)) \ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 126 |  |  |             if url else \ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 127 |  |  |             cls.get_first_comic_link() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 128 |  |  |         cls.log("next/first comic will be %s (url is %s)" % (str(next_comic), url)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 129 |  |  |         # cls.check_navigation(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 130 |  |  |         while next_comic: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 131 |  |  |             prev_url, url = url, cls.get_url_from_link(next_comic) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 132 |  |  |             if prev_url == url: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 133 |  |  |                 cls.log("got same url %s" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 134 |  |  |                 break | 
            
                                                                                                            
                            
            
                                    
            
            
                | 135 |  |  |             cls.log("about to get %s (%s)" % (url, str(next_comic))) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 136 |  |  |             soup = get_soup_at_url(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 137 |  |  |             comic = cls.get_comic_info(soup, next_comic) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 138 |  |  |             if comic is not None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 139 |  |  |                 assert 'url' not in comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 140 |  |  |                 comic['url'] = url | 
            
                                                                                                            
                            
            
                                    
            
            
                | 141 |  |  |                 yield comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 142 |  |  |             next_comic = cls.get_next_link(soup) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 143 |  |  |             cls.log("next comic will be %s" % str(next_comic)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 144 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 145 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 146 |  |  |     def check_first_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 147 |  |  |         """Check that navigation to first comic seems to be working - for dev purposes.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 148 |  |  |         cls.log("about to check first link") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 149 |  |  |         ok = True | 
            
                                                                                                            
                            
            
                                    
            
            
                | 150 |  |  |         firstlink = cls.get_first_comic_link() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 151 |  |  |         if firstlink is None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 152 |  |  |             print("From %s : no first link" % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 153 |  |  |             ok = False | 
            
                                                                                                            
                            
            
                                    
            
            
                | 154 |  |  |         else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 155 |  |  |             firsturl = cls.get_url_from_link(firstlink) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 156 |  |  |             try: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 157 |  |  |                 get_soup_at_url(firsturl) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 158 |  |  |             except urllib.error.HTTPError: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 159 |  |  |                 print("From %s : invalid first url" % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 160 |  |  |                 ok = False | 
            
                                                                                                            
                            
            
                                    
            
            
                | 161 |  |  |         cls.log("checked first link -> returned %d" % ok) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 162 |  |  |         return ok | 
            
                                                                                                            
                            
            
                                    
            
            
                | 163 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 164 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 165 |  |  |     def check_prev_next_links(cls, url): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 166 |  |  |         """Check that navigation to prev/next from a given URL seems to be working - for dev purposes.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 167 |  |  |         cls.log("about to check prev/next from %s" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 168 |  |  |         ok = True | 
            
                                                                                                            
                            
            
                                    
            
            
                | 169 |  |  |         if url is None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 170 |  |  |             prevlink, nextlink = None, None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 171 |  |  |         else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 172 |  |  |             soup = get_soup_at_url(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 173 |  |  |             prevlink, nextlink = cls.get_prev_link(soup), cls.get_next_link(soup) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 174 |  |  |         if prevlink is None and nextlink is None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 175 |  |  |             print("From %s : no previous nor next" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 176 |  |  |             ok = False | 
            
                                                                                                            
                            
            
                                    
            
            
                | 177 |  |  |         else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 178 |  |  |             if prevlink: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 179 |  |  |                 prevurl = cls.get_url_from_link(prevlink) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 180 |  |  |                 prevsoup = get_soup_at_url(prevurl) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 181 |  |  |                 prevnextlink = cls.get_next_link(prevsoup) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 182 |  |  |                 prevnext = cls.get_url_from_link(prevnextlink) if prevnextlink is not None else "NO URL" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 183 |  |  |                 if prevnext != url: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 184 |  |  |                     print("From %s, going backward then forward leads to %s" % (url, prevnext)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 185 |  |  |                     ok = False | 
            
                                                                                                            
                            
            
                                    
            
            
                | 186 |  |  |             if nextlink: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 187 |  |  |                 nexturl = cls.get_url_from_link(nextlink) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 188 |  |  |                 if nexturl != url: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 189 |  |  |                     nextsoup = get_soup_at_url(nexturl) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 190 |  |  |                     nextprevlink = cls.get_prev_link(nextsoup) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 191 |  |  |                     nextprev = cls.get_url_from_link(nextprevlink) if nextprevlink is not None else "NO URL" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 192 |  |  |                     if nextprev != url: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 193 |  |  |                         print("From %s, going forward then backward leads to %s" % (url, nextprev)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 194 |  |  |                         ok = False | 
            
                                                                                                            
                            
            
                                    
            
            
                | 195 |  |  |         cls.log("checked prev/next from %s -> returned %d" % (url, ok)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 196 |  |  |         return ok | 
            
                                                                                                            
                            
            
                                    
            
            
                | 197 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 198 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 199 |  |  |     def check_navigation(cls, url): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 200 |  |  |         """Check that navigation functions seem to be working - for dev purposes.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 201 |  |  |         cls.log("about to check navigation from %s" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 202 |  |  |         first = cls.check_first_link() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 203 |  |  |         prevnext = cls.check_prev_next_links(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 204 |  |  |         ok = first and prevnext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 205 |  |  |         cls.log("checked navigation from %s -> returned %d" % (url, ok)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 206 |  |  |         return ok | 
            
                                                                                                            
                            
            
                                    
            
            
                | 207 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 208 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 209 |  |  | class GenericListableComic(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 210 |  |  |     """Generic class for "listable" comics : with a list of comics (aka 'archive') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 211 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 212 |  |  |     The method `get_next_comic` methods is implemented in terms of new | 
            
                                                                                                            
                            
            
                                    
            
            
                | 213 |  |  |     more specialized methods to be implemented/overridden: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 214 |  |  |         - get_archive_elements | 
            
                                                                                                            
                            
            
                                    
            
            
                | 215 |  |  |         - get_url_from_archive_element | 
            
                                                                                                            
                            
            
                                    
            
            
                | 216 |  |  |         - get_comic_info | 
            
                                                                                                            
                            
            
                                    
            
            
                | 217 |  |  |     """ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 218 |  |  |     _categories = ('LISTABLE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 219 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 220 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 221 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 222 |  |  |         """Get the archive elements (iterable).""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 223 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 224 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 225 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 226 |  |  |     def get_url_from_archive_element(cls, archive_elt): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 227 |  |  |         """Get url corresponding to an archive element.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 228 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 229 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 230 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 231 |  |  |     def get_comic_info(cls, soup, archive_elt): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 232 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 233 |  |  |         raise NotImplementedError | 
            
                                                                                                            
                            
            
                                    
            
            
                | 234 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 235 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 236 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 237 |  |  |         """Generic implementation of get_next_comic for listable comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 238 |  |  |         waiting_for_url = last_comic['url'] if last_comic else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 239 |  |  |         for archive_elt in cls.get_archive_elements(): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 240 |  |  |             url = cls.get_url_from_archive_element(archive_elt) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 241 |  |  |             cls.log("considering %s" % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 242 |  |  |             if waiting_for_url is None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 243 |  |  |                 cls.log("about to get %s (%s)" % (url, str(archive_elt))) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 244 |  |  |                 soup = get_soup_at_url(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 245 |  |  |                 comic = cls.get_comic_info(soup, archive_elt) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 246 |  |  |                 if comic is not None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 247 |  |  |                     assert 'url' not in comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 248 |  |  |                     comic['url'] = url | 
            
                                                                                                            
                            
            
                                    
            
            
                | 249 |  |  |                     yield comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 250 |  |  |             elif waiting_for_url == url: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 251 |  |  |                 waiting_for_url = None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 252 |  |  |         if waiting_for_url is not None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 253 |  |  |             print("Did not find %s : there might be a problem" % waiting_for_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 254 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 255 |  |  | # Helper functions corresponding to get_first_comic_link/get_navi_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 256 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 257 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 258 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 259 |  |  | def get_link_rel_next(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 260 |  |  |     """Implementation of get_navi_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 261 |  |  |     return last_soup.find('link', rel='next' if next_ else 'prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 262 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 263 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 264 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 265 |  |  | def get_a_rel_next(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 266 |  |  |     """Implementation of get_navi_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 267 |  |  |     return last_soup.find('a', rel='next' if next_ else 'prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 268 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 269 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 270 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 271 |  |  | def get_a_navi_navinext(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 272 |  |  |     """Implementation of get_navi_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 273 |  |  |     return last_soup.find('a', class_='navi navi-next' if next_ else 'navi navi-prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 274 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 275 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 276 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 277 |  |  | def get_a_navi_comicnavnext_navinext(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 278 |  |  |     """Implementation of get_navi_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 279 |  |  |     return last_soup.find('a', class_='navi comic-nav-next navi-next' if next_ else 'navi comic-nav-previous navi-prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 280 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 281 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 282 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 283 |  |  | def get_a_comicnavbase_comicnavnext(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 284 |  |  |     """Implementation of get_navi_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 285 |  |  |     return last_soup.find('a', class_='comic-nav-base comic-nav-next' if next_ else 'comic-nav-base comic-nav-previous') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 286 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 287 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 288 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 289 |  |  | def get_a_navi_navifirst(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 290 |  |  |     """Implementation of get_first_comic_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 291 |  |  |     return get_soup_at_url(cls.url).find('a', class_='navi navi-first') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 292 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 293 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 294 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 295 |  |  | def get_div_navfirst_a(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 296 |  |  |     """Implementation of get_first_comic_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 297 |  |  |     return get_soup_at_url(cls.url).find('div', class_="nav-first").find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 298 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 299 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 300 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 301 |  |  | def get_a_comicnavbase_comicnavfirst(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 302 |  |  |     """Implementation of get_first_comic_link.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 303 |  |  |     return get_soup_at_url(cls.url).find('a', class_='comic-nav-base comic-nav-first') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 304 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 305 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 306 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 307 |  |  | def simulate_first_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 308 |  |  |     """Implementation of get_first_comic_link creating a link-like object from | 
            
                                                                                                            
                            
            
                                    
            
            
                | 309 |  |  |     an URL provided by the class. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 310 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 311 |  |  |     Note: The first URL can easily be found using : | 
            
                                                                                                            
                            
            
                                    
            
            
                | 312 |  |  |     `get_first_comic_link = navigate_to_first_comic`. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 313 |  |  |     """ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 314 |  |  |     return {'href': cls.first_url} | 
            
                                                                                                            
                            
            
                                    
            
            
                | 315 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 316 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 317 |  |  | @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 318 |  |  | def navigate_to_first_comic(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 319 |  |  |     """Implementation of get_first_comic_link navigating from a user provided | 
            
                                                                                                            
                            
            
                                    
            
            
                | 320 |  |  |     URL to the first comic. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 321 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 322 |  |  |     Sometimes, the first comic cannot be reached directly so to start | 
            
                                                                                                            
                            
            
                                    
            
            
                | 323 |  |  |     from the first comic one has to go to the previous comic until | 
            
                                                                                                            
                            
            
                                    
            
            
                | 324 |  |  |     there is no previous comics. Once this URL is reached, it | 
            
                                                                                                            
                            
            
                                    
            
            
                | 325 |  |  |     is better to hardcode it but for development purposes, it | 
            
                                                                                                            
                            
            
                                    
            
            
                | 326 |  |  |     is convenient to have an automatic way to find it. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 327 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 328 |  |  |     Then, the URL found can easily be used via `simulate_first_link`. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 329 |  |  |     """ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 330 |  |  |     url = input("Get starting URL: ") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 331 |  |  |     print(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 332 |  |  |     comic = cls.get_prev_link(get_soup_at_url(url)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 333 |  |  |     while comic: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 334 |  |  |         url = cls.get_url_from_link(comic) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 335 |  |  |         print(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 336 |  |  |         comic = cls.get_prev_link(get_soup_at_url(url)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 337 |  |  |     return {'href': url} | 
            
                                                                                                            
                            
            
                                    
            
            
                | 338 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 339 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 340 |  |  | class GenericEmptyComic(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 341 |  |  |     """Generic class for comics where nothing is to be done. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 342 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 343 |  |  |     It can be useful to deactivate temporarily comics that do not work | 
            
                                                                                                            
                            
            
                                    
            
            
                | 344 |  |  |     properly by replacing `def MyComic(GenericWhateverComic)` with | 
            
                                                                                                            
                            
            
                                    
            
            
                | 345 |  |  |     `def MyComic(GenericEmptyComic, GenericWhateverComic)`.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 346 |  |  |     _categories = ('EMPTY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 347 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 348 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 349 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 350 |  |  |         """Implementation of get_next_comic returning no comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 351 |  |  |         cls.log("comic is considered as empty - returning no comic") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 352 |  |  |         return [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 353 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 354 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 355 |  |  | class ExtraFabulousComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 356 |  |  |     """Class to retrieve Extra Fabulous Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 357 |  |  |     name = 'efc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 358 |  |  |     long_name = 'Extra Fabulous Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 359 |  |  |     url = 'http://extrafabulouscomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 360 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 361 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 362 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 363 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 364 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 365 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 366 |  |  |         img_src_re = re.compile('^%s/wp-content/uploads/' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 367 |  |  |         imgs = soup.find_all('img', src=img_src_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 368 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 369 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 370 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 371 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 372 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 373 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 374 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 375 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 376 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 377 |  |  |             'prefix': title + '-' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 378 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 379 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 380 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 381 |  | View Code Duplication | class GenericLeMondeBlog(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 382 |  |  |     """Generic class to retrieve comics from Le Monde blogs.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 383 |  |  |     _categories = ('LEMONDE', 'FRANCAIS') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 384 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 385 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 386 |  |  |     first_url = NotImplemented | 
            
                                                                                                            
                            
            
                                    
            
            
                | 387 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 388 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 389 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 390 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 391 |  |  |         url2 = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 392 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 393 |  |  |         date_str = soup.find("span", class_="entry-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 394 |  |  |         day = string_to_date(date_str, "%d %B %Y", "fr_FR.utf8") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 395 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 396 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 397 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 398 |  |  |             'url2': url2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 399 |  |  |             'img': [convert_iri_to_plain_ascii_uri(i['content']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 400 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 401 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 402 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 403 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 404 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 405 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 406 |  |  | class ZepWorld(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 407 |  |  |     """Class to retrieve Zep World comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 408 |  |  |     name = "zep" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 409 |  |  |     long_name = "Zep World" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 410 |  |  |     url = "http://zepworld.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 411 |  |  |     first_url = "http://zepworld.blog.lemonde.fr/2014/10/31/bientot-le-blog-de-zep/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 412 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 413 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 414 |  |  | class Vidberg(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 415 |  |  |     """Class to retrieve Vidberg comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 416 |  |  |     name = 'vidberg' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 417 |  |  |     long_name = "Vidberg - l'actu en patates" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 418 |  |  |     url = "http://vidberg.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 419 |  |  |     # Not the first but I didn't find an efficient way to retrieve it | 
            
                                                                                                            
                            
            
                                    
            
            
                | 420 |  |  |     first_url = "http://vidberg.blog.lemonde.fr/2012/02/09/revue-de-campagne-la-campagne-du-modem-semballe/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 421 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 422 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 423 |  |  | class Plantu(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 424 |  |  |     """Class to retrieve Plantu comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 425 |  |  |     name = 'plantu' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 426 |  |  |     long_name = "Plantu" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 427 |  |  |     url = "http://plantu.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 428 |  |  |     first_url = "http://plantu.blog.lemonde.fr/2014/10/28/stress-test-a-bruxelles/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 429 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 430 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 431 |  |  | class XavierGorce(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 432 |  |  |     """Class to retrieve Xavier Gorce comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 433 |  |  |     name = 'gorce' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 434 |  |  |     long_name = "Xavier Gorce" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 435 |  |  |     url = "http://xaviergorce.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 436 |  |  |     first_url = "http://xaviergorce.blog.lemonde.fr/2015/01/09/distinction/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 437 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 438 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 439 |  |  | class CartooningForPeace(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 440 |  |  |     """Class to retrieve Cartooning For Peace comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 441 |  |  |     name = 'forpeace' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 442 |  |  |     long_name = "Cartooning For Peace" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 443 |  |  |     url = "http://cartooningforpeace.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 444 |  |  |     first_url = "http://cartooningforpeace.blog.lemonde.fr/2014/12/15/bado/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 445 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 446 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 447 |  |  | class Aurel(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 448 |  |  |     """Class to retrieve Aurel comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 449 |  |  |     name = 'aurel' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 450 |  |  |     long_name = "Aurel" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 451 |  |  |     url = "http://aurel.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 452 |  |  |     first_url = "http://aurel.blog.lemonde.fr/2014/09/29/le-senat-repasse-a-droite/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 453 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 454 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 455 |  |  | class LesCulottees(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 456 |  |  |     """Class to retrieve Les Culottees comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 457 |  |  |     name = 'culottees' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 458 |  |  |     long_name = 'Les Culottees' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 459 |  |  |     url = "http://lesculottees.blog.lemonde.fr" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 460 |  |  |     first_url = "http://lesculottees.blog.lemonde.fr/2016/01/11/clementine-delait-femme-a-barbe/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 461 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 462 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 463 |  |  | class UneAnneeAuLycee(GenericLeMondeBlog): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 464 |  |  |     """Class to retrieve Une Annee Au Lycee comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 465 |  |  |     name = 'lycee' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 466 |  |  |     long_name = 'Une Annee au Lycee' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 467 |  |  |     url = 'http://uneanneeaulycee.blog.lemonde.fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 468 |  |  |     first_url = "http://uneanneeaulycee.blog.lemonde.fr/2016/06/13/la-semaine-du-bac-est-arrivee/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 469 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 470 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 471 |  | View Code Duplication | class Rall(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 472 |  |  |     """Class to retrieve Ted Rall comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 473 |  |  |     # Also on http://www.gocomics.com/tedrall | 
            
                                                                                                            
                            
            
                                    
            
            
                | 474 |  |  |     name = 'rall' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 475 |  |  |     long_name = "Ted Rall" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 476 |  |  |     url = "http://rall.com/comic" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 477 |  |  |     _categories = ('RALL', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 478 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 479 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 480 |  |  |     # Not the first but I didn't find an efficient way to retrieve it | 
            
                                                                                                            
                            
            
                                    
            
            
                | 481 |  |  |     first_url = "http://rall.com/2014/01/30/los-angeles-times-cartoon-well-miss-those-california-flowers" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 482 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 483 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 484 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 485 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 486 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 487 |  |  |         author = soup.find("span", class_="author vcard").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 488 |  |  |         date_str = soup.find("span", class_="entry-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 489 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 490 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 491 |  |  |         imgs = soup.find('div', class_='entry-content').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 492 |  |  |         imgs = imgs[:-7]  # remove social media buttons | 
            
                                                                                                            
                            
            
                                    
            
            
                | 493 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 494 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 495 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 496 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 497 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 498 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 499 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 500 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 501 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 502 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 503 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 504 |  |  | class Dilem(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 505 |  |  |     """Class to retrieve Ali Dilem comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 506 |  |  |     name = 'dilem' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 507 |  |  |     long_name = 'Ali Dilem' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 508 |  |  |     url = 'http://information.tv5monde.com/dilem' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 509 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 510 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 511 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 512 |  |  |     first_url = "http://information.tv5monde.com/dilem/2004-06-26" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 513 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 514 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 515 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 516 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 517 |  |  |         # prev is next / next is prev | 
            
                                                                                                            
                            
            
                                    
            
            
                | 518 |  |  |         li = last_soup.find('li', class_='prev' if next_ else 'next') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 519 |  |  |         return li.find('a') if li else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 520 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 521 |  | View Code Duplication |     @classmethod | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 522 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 523 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 524 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 525 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:title'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 526 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 527 |  |  |         date_str = soup.find('span', property='dc:date')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 528 |  |  |         date_str = date_str[:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 529 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 530 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 531 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 532 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 533 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 534 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 535 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 536 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 537 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 538 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 539 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 540 |  |  | class SpaceAvalanche(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 541 |  |  |     """Class to retrieve Space Avalanche comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 542 |  |  |     name = 'avalanche' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 543 |  |  |     long_name = 'Space Avalanche' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 544 |  |  |     url = 'http://www.spaceavalanche.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 545 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 546 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 547 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 548 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 549 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 550 |  |  |         return {'href': "http://www.spaceavalanche.com/2009/02/02/irish-sea/", 'title': "Irish Sea"} | 
            
                                                                                                            
                            
            
                                    
            
            
                | 551 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 552 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 553 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 554 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 555 |  |  |         url_date_re = re.compile('.*/([0-9]*)/([0-9]*)/([0-9]*)/.*$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 556 |  |  |         title = link['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 557 |  |  |         url = cls.get_url_from_link(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 558 |  |  |         year, month, day = [int(s) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 559 |  |  |                             for s in url_date_re.match(url).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 560 |  |  |         imgs = soup.find("div", class_="entry").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 561 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 562 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 563 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 564 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 565 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 566 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 567 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 568 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 569 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 570 |  |  | class ZenPencils(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 571 |  |  |     """Class to retrieve ZenPencils comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 572 |  |  |     # Also on http://zenpencils.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 573 |  |  |     # Also on http://www.gocomics.com/zen-pencils | 
            
                                                                                                            
                            
            
                                    
            
            
                | 574 |  |  |     name = 'zenpencils' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 575 |  |  |     long_name = 'Zen Pencils' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 576 |  |  |     url = 'http://zenpencils.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 577 |  |  |     _categories = ('ZENPENCILS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 578 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 579 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 580 |  |  |     first_url = "http://zenpencils.com/comic/1-ralph-waldo-emerson-make-them-cry/" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 581 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 582 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 583 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 584 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 585 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 586 |  |  |         # imgs2 = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 587 |  |  |         post = soup.find('div', class_='post-content') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 588 |  |  |         author = post.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 589 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 590 |  |  |         date_str = post.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 591 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 592 |  |  |         assert imgs | 
            
                                                                                                            
                            
            
                                    
            
            
                | 593 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 594 |  |  |         assert all(i['alt'] in (title, "") for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 595 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 596 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 597 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 598 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 599 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 600 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 601 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 602 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 603 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 604 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 605 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 606 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 607 |  |  | class ItsTheTie(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 608 |  |  |     """Class to retrieve It's the tie comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 609 |  |  |     # Also on http://itsthetie.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 610 |  |  |     # Also on https://tapastic.com/series/itsthetie | 
            
                                                                                                            
                            
            
                                    
            
            
                | 611 |  |  |     name = 'tie' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 612 |  |  |     long_name = "It's the tie" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 613 |  |  |     url = "http://itsthetie.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 614 |  |  |     _categories = ('TIE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 615 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 616 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 617 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 618 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 619 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 620 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 621 |  |  |         title = soup.find('h1', class_='comic-title').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 622 |  |  |         date_str = soup.find('header', class_='comic-meta entry-meta').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 623 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 624 |  |  |         # Bonus images may or may not be in meta og:image. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 625 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 626 |  |  |         imgs_src = [i['content'] for i in imgs] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 627 |  |  |         bonus = soup.find_all('img', attrs={'data-oversrc': True}) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 628 |  |  |         bonus_src = [b['data-oversrc'] for b in bonus] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 629 |  |  |         all_imgs_src = imgs_src + [s for s in bonus_src if s not in imgs_src] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 630 |  |  |         all_imgs_src = [s for s in all_imgs_src if not s.endswith("/2016/01/bonus-panel.png")] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 631 |  |  |         tag_meta = soup.find('meta', property='article:tag') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 632 |  |  |         tags = tag_meta['content'] if tag_meta else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 633 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 634 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 635 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 636 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 637 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 638 |  |  |             'img': all_imgs_src, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 639 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 640 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 641 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 642 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 643 |  |  | class PenelopeBagieu(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 644 |  |  |     """Class to retrieve comics from Penelope Bagieu's blog.""" | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 645 |  | View Code Duplication |     name = 'bagieu' | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 646 |  |  |     long_name = 'Ma vie est tout a fait fascinante (Bagieu)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 647 |  |  |     url = 'http://www.penelope-jolicoeur.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 648 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 649 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 650 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 651 |  |  |     first_url = 'http://www.penelope-jolicoeur.com/2007/02/ma-vie-mon-oeuv.html' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 652 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 653 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 654 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 655 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 656 |  |  |         date_str = soup.find('h2', class_='date-header').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 657 |  |  |         day = string_to_date(date_str, "%A %d %B %Y", "fr_FR.utf8") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 658 |  |  |         imgs = soup.find('div', class_='entry-body').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 659 |  |  |         title = soup.find('h3', class_='entry-header').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 660 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 661 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 662 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 663 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 664 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 665 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 666 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 667 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 668 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 669 |  | View Code Duplication | class OneOneOneOneComic(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 670 |  |  |     """Class to retrieve 1111 Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 671 |  |  |     # Also on http://comics1111.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 672 |  |  |     # Also on https://tapastic.com/series/1111-Comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 673 |  |  |     name = '1111' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 674 |  |  |     long_name = '1111 Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 675 |  |  |     url = 'http://www.1111comics.me' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 676 |  |  |     _categories = ('ONEONEONEONE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 677 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 678 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 679 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 680 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 681 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 682 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 683 |  |  |         title = soup.find('h1', class_='comic-title').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 684 |  |  |         date_str = soup.find('header', class_='comic-meta entry-meta').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 685 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 686 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 687 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 688 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 689 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 690 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 691 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 692 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 693 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 694 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 695 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 696 |  | View Code Duplication | class AngryAtNothing(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 697 |  |  |     """Class to retrieve Angry at Nothing comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 698 |  |  |     # Also on http://tapastic.com/series/Comics-yeah-definitely-comics- | 
            
                                                                                                            
                            
            
                                    
            
            
                | 699 |  |  |     name = 'angry' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 700 |  |  |     long_name = 'Angry At Nothing' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 701 |  |  |     url = 'http://www.angryatnothing.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 702 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 703 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 704 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 705 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 706 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 707 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 708 |  |  |         title = soup.find('h1', class_='comic-title').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 709 |  |  |         date_str = soup.find('header', class_='comic-meta entry-meta').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 710 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 711 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 712 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 713 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 714 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 715 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 716 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 717 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 718 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 719 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 720 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 721 |  |  | class NeDroid(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 722 |  |  |     """Class to retrieve NeDroid comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 723 |  |  |     name = 'nedroid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 724 |  |  |     long_name = 'NeDroid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 725 |  |  |     url = 'http://nedroid.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 726 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 727 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 728 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 729 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 730 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 731 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 732 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 733 |  |  |         short_url_re = re.compile('^%s/\\?p=([0-9]*)' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 734 |  |  |         comic_url_re = re.compile('//nedroid.com/comics/([0-9]*)-([0-9]*)-([0-9]*).*') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 735 |  |  |         short_url = cls.get_url_from_link(soup.find('link', rel='shortlink')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 736 |  |  |         num = int(short_url_re.match(short_url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 737 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 738 |  |  |         year, month, day = [int(s) for s in comic_url_re.match(imgs[0]['src']).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 739 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 740 |  |  |         title = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 741 |  |  |         title2 = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 742 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 743 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 744 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 745 |  |  |             'title2': title2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 746 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 747 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 748 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 749 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 750 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 751 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 752 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 753 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 754 |  |  | class Garfield(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 755 |  |  |     """Class to retrieve Garfield comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 756 |  |  |     # Also on http://www.gocomics.com/garfield | 
            
                                                                                                            
                            
            
                                    
            
            
                | 757 |  |  |     name = 'garfield' | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 758 |  | View Code Duplication |     long_name = 'Garfield' | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 759 |  |  |     url = 'https://garfield.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 760 |  |  |     _categories = ('GARFIELD', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 761 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 762 |  |  |     first_url = 'https://garfield.com/comic/1978/06/19' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 763 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 764 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 765 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 766 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 767 |  |  |         return last_soup.find('a', class_='comic-arrow-right' if next_ else 'comic-arrow-left') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 768 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 769 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 770 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 771 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 772 |  |  |         url = cls.get_url_from_link(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 773 |  |  |         date_re = re.compile('^%s/comic/([0-9]*)/([0-9]*)/([0-9]*)' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 774 |  |  |         year, month, day = [int(s) for s in date_re.match(url).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 775 |  |  |         imgs = soup.find('div', class_='comic-display').find_all('img', class_='img-responsive') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 776 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 777 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 778 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 779 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 780 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 781 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 782 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 783 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 784 |  |  | class Dilbert(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 785 |  |  |     """Class to retrieve Dilbert comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 786 |  |  |     # Also on http://www.gocomics.com/dilbert-classics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 787 |  |  |     name = 'dilbert' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 788 |  |  |     long_name = 'Dilbert' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 789 |  |  |     url = 'http://dilbert.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 790 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 791 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 792 |  |  |     first_url = 'http://dilbert.com/strip/1989-04-16' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 793 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 794 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 795 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 796 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 797 |  |  |         link = last_soup.find('div', class_='nav-comic nav-right' if next_ else 'nav-comic nav-left') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 798 |  |  |         return link.find('a') if link else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 799 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 800 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 801 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 802 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 803 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 804 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 805 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 806 |  |  |         date_str = soup.find('meta', property='article:publish_date')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 807 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 808 |  |  |         author = soup.find('meta', property='article:author')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 809 |  |  |         tags = soup.find('meta', property='article:tag')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 810 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 811 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 812 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 813 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 814 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 815 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 816 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 817 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 818 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 819 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 820 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 821 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 822 |  |  | class VictimsOfCircumsolar(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 823 |  |  |     """Class to retrieve VictimsOfCircumsolar comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 824 |  |  |     name = 'circumsolar' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 825 |  |  |     long_name = 'Victims Of Circumsolar' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 826 |  |  |     url = 'http://www.victimsofcircumsolar.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 827 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 828 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 829 |  |  |     first_url = 'http://www.victimsofcircumsolar.com/comic/modern-addiction' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 830 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 831 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 832 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 833 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 834 |  |  |         # Date is on the archive page | 
            
                                                                                                            
                            
            
                                    
            
            
                | 835 |  |  |         title = soup.find_all('meta', property='og:title')[-1]['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 836 |  |  |         desc = soup.find_all('meta', property='og:description')[-1]['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 837 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 838 |  |  |         assert all(i['title'] == i['alt'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 839 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 840 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 841 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 842 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 843 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 844 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 845 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 846 |  |  | class ThreeWordPhrase(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 847 |  |  |     """Class to retrieve Three Word Phrase comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 848 |  |  |     # Also on http://www.threewordphrase.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 849 |  |  |     name = 'threeword' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 850 |  |  |     long_name = 'Three Word Phrase' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 851 |  |  |     url = 'http://threewordphrase.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 852 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 853 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 854 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 855 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 856 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 857 |  |  |         return get_soup_at_url(cls.url).find('img', src='/firstlink.gif').parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 858 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 859 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 860 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 861 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 862 |  |  |         link = last_soup.find('img', src='/nextlink.gif' if next_ else '/prevlink.gif').parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 863 |  |  |         return None if link.get('href') is None else link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 864 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 865 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 866 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 867 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 868 |  |  |         title = soup.find('title') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 869 |  |  |         imgs = [img for img in soup.find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 870 |  |  |                 if not img['src'].endswith( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 871 |  |  |                     ('link.gif', '32.png', 'twpbookad.jpg', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 872 |  |  |                      'merchad.jpg', 'header.gif', 'tipjar.jpg'))] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 873 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 874 |  |  |             'title': title.string if title else None, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 875 |  |  |             'title2': '  '.join(img.get('alt') for img in imgs if img.get('alt')), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 876 |  |  |             'img': [urljoin_wrapper(cls.url, img['src']) for img in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 877 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 878 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 879 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 880 |  |  | class DeadlyPanel(GenericEmptyComic, GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 881 |  |  |     """Class to retrieve Deadly Panel comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 882 |  |  |     # Also on https://tapastic.com/series/deadlypanel | 
            
                                                                                                            
                            
            
                                    
            
            
                | 883 |  |  |     name = 'deadly' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 884 |  |  |     long_name = 'Deadly Panel' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 885 |  |  |     url = 'http://www.deadlypanel.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 886 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 887 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 888 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 889 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 890 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 891 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 892 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 893 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 894 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 895 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 896 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 897 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 898 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 899 |  | View Code Duplication | class TheGentlemanArmchair(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 900 |  |  |     """Class to retrieve The Gentleman Armchair comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 901 |  |  |     name = 'gentlemanarmchair' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 902 |  |  |     long_name = 'The Gentleman Armchair' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 903 |  |  |     url = 'http://thegentlemansarmchair.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 904 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 905 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 906 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 907 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 908 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 909 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 910 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 911 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 912 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 913 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 914 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 915 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 916 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 917 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 918 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 919 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 920 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 921 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 922 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 923 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 924 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 925 |  | View Code Duplication | class MyExtraLife(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 926 |  |  |     """Class to retrieve My Extra Life comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 927 |  |  |     name = 'extralife' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 928 |  |  |     long_name = 'My Extra Life' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 929 |  |  |     url = 'http://www.myextralife.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 930 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 931 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 932 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 933 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 934 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 935 |  |  |         return get_soup_at_url(cls.url).find('a', class_='comic_nav_link first_comic_link') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 936 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 937 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 938 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 939 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 940 |  |  |         title = soup.find("h1", class_="comic_title").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 941 |  |  |         date_str = soup.find("span", class_="comic_date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 942 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 943 |  |  |         imgs = soup.find_all("img", class_="comic") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 944 |  |  |         assert all(i['alt'] == i['title'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 945 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 946 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 947 |  |  |             'img': [i['src'] for i in imgs if i["src"]], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 948 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 949 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 950 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 951 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 952 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 953 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 954 |  |  | class SaturdayMorningBreakfastCereal(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 955 |  |  |     """Class to retrieve Saturday Morning Breakfast Cereal comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 956 |  |  |     # Also on http://www.gocomics.com/saturday-morning-breakfast-cereal | 
            
                                                                                                            
                            
            
                                    
            
            
                | 957 |  |  |     # Also on http://smbc-comics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 958 |  |  |     name = 'smbc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 959 |  |  |     long_name = 'Saturday Morning Breakfast Cereal' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 960 |  |  |     url = 'http://www.smbc-comics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 961 |  |  |     _categories = ('SMBC', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 962 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 963 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 964 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 965 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 966 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 967 |  |  |         return get_soup_at_url(cls.url).find('a', rel='start') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 968 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 969 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 970 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 971 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 972 |  |  |         image1 = soup.find('img', id='cc-comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 973 |  |  |         image_url1 = image1['src'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 974 |  |  |         aftercomic = soup.find('div', id='aftercomic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 975 |  |  |         image_url2 = aftercomic.find('img')['src'] if aftercomic else '' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 976 |  |  |         imgs = [image_url1] + ([image_url2] if image_url2 else []) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 977 |  |  |         date_str = soup.find('div', class_='cc-publishtime').contents[0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 978 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 979 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 980 |  |  |             'title': image1['title'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 981 |  |  |             'img': [urljoin_wrapper(cls.url, i) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 982 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 983 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 984 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 985 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 986 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 987 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 988 |  |  | class PerryBibleFellowship(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 989 |  |  |     """Class to retrieve Perry Bible Fellowship comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 990 |  |  |     name = 'pbf' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 991 |  |  |     long_name = 'Perry Bible Fellowship' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 992 |  |  |     url = 'http://pbfcomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 993 |  |  |     get_url_from_archive_element = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 994 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 995 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 996 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 997 |  |  |         comic_link_re = re.compile('^/[0-9]*/$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 998 |  |  |         return reversed(get_soup_at_url(cls.url).find_all('a', href=comic_link_re)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 999 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1000 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1001 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1002 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1003 |  |  |         url = cls.get_url_from_archive_element(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1004 |  |  |         comic_img_re = re.compile('^/archive_b/PBF.*') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1005 |  |  |         name = link.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1006 |  |  |         num = int(link['name']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1007 |  |  |         href = link['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1008 |  |  |         assert href == '/%d/' % num | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1009 |  |  |         imgs = soup.find_all('img', src=comic_img_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1010 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1011 |  |  |         assert imgs[0]['alt'] == name | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1012 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1013 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1014 |  |  |             'name': name, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1015 |  |  |             'img': [urljoin_wrapper(url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1016 |  |  |             'prefix': '%d-' % num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1017 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1018 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1019 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1020 |  |  | class Mercworks(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1021 |  |  |     """Class to retrieve Mercworks comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1022 |  |  |     # Also on http://mercworks.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1023 |  |  |     name = 'mercworks' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1024 |  |  |     long_name = 'Mercworks' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1025 |  |  |     url = 'http://mercworks.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1026 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1027 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1028 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1029 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1030 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1031 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1032 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1033 |  |  |         metadesc = soup.find('meta', property='og:description') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1034 |  |  |         desc = metadesc['content'] if metadesc else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1035 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1036 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1037 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1038 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1039 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1040 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1041 |  |  |             'desc': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1042 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1043 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1044 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1045 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1046 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1047 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1048 |  |  | class BerkeleyMews(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1049 |  |  |     """Class to retrieve Berkeley Mews comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1050 |  |  |     # Also on http://mews.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1051 |  |  |     # Also on http://www.gocomics.com/berkeley-mews | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1052 |  |  |     name = 'berkeley' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1053 |  |  |     long_name = 'Berkeley Mews' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1054 |  |  |     url = 'http://www.berkeleymews.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1055 |  |  |     _categories = ('BERKELEY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1056 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1057 |  |  |     comic_num_re = re.compile('%s/\\?p=([0-9]*)$' % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1058 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1059 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1060 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1061 |  |  |         archive_url = urljoin_wrapper(cls.url, "?page_id=2") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1062 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', href=cls.comic_num_re)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1063 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1064 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1065 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1066 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1067 |  |  |         comic_date_re = re.compile('.*/([0-9]*)-([0-9]*)-([0-9]*)-.*') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1068 |  |  |         url = cls.get_url_from_archive_element(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1069 |  |  |         num = int(cls.comic_num_re.match(url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1070 |  |  |         img = soup.find('div', id='comic').find('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1071 |  |  |         assert all(i['alt'] == i['title'] for i in [img]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1072 |  |  |         title2 = img['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1073 |  |  |         img_url = img['src'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1074 |  |  |         year, month, day = [int(s) for s in comic_date_re.match(img_url).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1075 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1076 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1077 |  |  |             'title': link.string, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1078 |  |  |             'title2': title2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1079 |  |  |             'img': [img_url], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1080 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1081 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1082 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1083 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1084 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1085 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1086 |  |  | class GenericBouletCorp(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1087 |  |  |     """Generic class to retrieve BouletCorp comics in different languages.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1088 |  |  |     # Also on http://bouletcorp.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1089 |  |  |     _categories = ('BOULET', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1090 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1091 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1092 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1093 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1094 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1095 |  |  |         return get_soup_at_url(cls.url).find('div', id='centered_nav').find_all('a')[0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1096 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1097 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1098 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1099 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1100 |  |  |         url = cls.get_url_from_link(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1101 |  |  |         date_re = re.compile('^%s/([0-9]*)/([0-9]*)/([0-9]*)/' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1102 |  |  |         year, month, day = [int(s) for s in date_re.match(url).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1103 |  |  |         imgs = soup.find('div', id='notes').find('div', class_='storycontent').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1104 |  |  |         texts = '  '.join(t for t in (i.get('title') for i in imgs) if t) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1105 |  |  |         title = soup.find('title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1106 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1107 |  |  |             'img': [convert_iri_to_plain_ascii_uri(i['src']) for i in imgs if i.get('src') is not None], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1108 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1109 |  |  |             'texts': texts, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1110 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1111 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1112 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1113 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1114 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1115 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1116 |  |  | class BouletCorp(GenericBouletCorp): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1117 |  |  |     """Class to retrieve BouletCorp comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1118 |  |  |     name = 'boulet' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1119 |  |  |     long_name = 'Boulet Corp' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1120 |  |  |     url = 'http://www.bouletcorp.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1121 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1122 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1123 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1124 |  |  | class BouletCorpEn(GenericBouletCorp): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1125 |  |  |     """Class to retrieve EnglishBouletCorp comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1126 |  |  |     name = 'boulet_en' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1127 |  |  |     long_name = 'Boulet Corp English' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1128 |  |  |     url = 'http://english.bouletcorp.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1129 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1130 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1131 |  | View Code Duplication | class AmazingSuperPowers(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1132 |  |  |     """Class to retrieve Amazing Super Powers comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1133 |  |  |     name = 'asp' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1134 |  |  |     long_name = 'Amazing Super Powers' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1135 |  |  |     url = 'http://www.amazingsuperpowers.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1136 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1137 |  |  |     get_navi_link = get_a_navi_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1138 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1139 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1140 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1141 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1142 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1143 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1144 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1145 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1146 |  |  |         title = ' '.join(i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1147 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1148 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1149 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1150 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1151 |  |  |             'img': [img['src'] for img in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1152 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1153 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1154 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1155 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1156 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1157 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1158 |  |  | class ToonHole(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1159 |  |  |     """Class to retrieve Toon Holes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1160 |  |  |     # Also on http://tapastic.com/series/TOONHOLE | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1161 |  |  |     name = 'toonhole' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1162 |  |  |     long_name = 'Toon Hole' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1163 |  |  |     url = 'http://www.toonhole.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1164 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1165 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1166 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1167 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1168 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1169 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1170 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1171 |  |  |         date_str = soup.find('div', class_='entry-meta').contents[0].strip() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1172 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1173 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1174 |  |  |         if imgs: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1175 |  |  |             img = imgs[0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1176 |  |  |             title = img['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1177 |  |  |             assert img['title'] == title | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1178 |  |  |         else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1179 |  |  |             title = "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1180 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1181 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1182 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1183 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1184 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1185 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1186 |  |  |             'img': [convert_iri_to_plain_ascii_uri(i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1187 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1188 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1189 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1190 |  |  | class Channelate(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1191 |  |  |     """Class to retrieve Channelate comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1192 |  |  |     name = 'channelate' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1193 |  |  |     long_name = 'Channelate' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1194 |  |  |     url = 'http://www.channelate.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1195 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1196 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1197 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1198 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1199 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1200 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1201 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1202 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1203 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1204 |  |  |         day = string_to_date(date_str, '%Y/%m/%d') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1205 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1206 |  |  |         post = soup.find('div', id='comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1207 |  |  |         imgs = post.find_all('img') if post else [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1208 |  |  |         extra_url = None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1209 |  |  |         extra_div = soup.find('div', id='extrapanelbutton') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1210 |  |  |         if extra_div: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1211 |  |  |             extra_url = extra_div.find('a')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1212 |  |  |             extra_soup = get_soup_at_url(extra_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1213 |  |  |             extra_imgs = extra_soup.find_all('img', class_='extrapanelimage') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1214 |  |  |             imgs.extend(extra_imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1215 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1216 |  |  |             'url_extra': extra_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1217 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1218 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1219 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1220 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1221 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1222 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1223 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1224 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1225 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1226 |  |  | class CyanideAndHappiness(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1227 |  |  |     """Class to retrieve Cyanide And Happiness comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1228 |  |  |     name = 'cyanide' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1229 |  |  |     long_name = 'Cyanide and Happiness' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1230 |  |  |     url = 'http://explosm.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1231 |  |  |     _categories = ('NSFW', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1232 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1233 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1234 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1235 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1236 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1237 |  |  |         return get_soup_at_url(cls.url).find('a', title='Oldest comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1238 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1239 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1240 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1241 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1242 |  |  |         link = last_soup.find('a', class_='next-comic' if next_ else 'previous-comic ') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1243 |  |  |         return None if link.get('href') is None else link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1244 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1245 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1246 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1247 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1248 |  |  |         url2 = soup.find('meta', property='og:url')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1249 |  |  |         num = int(url2.split('/')[-2]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1250 |  |  |         date_str = soup.find('h3').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1251 |  |  |         day = string_to_date(date_str, '%Y.%m.%d') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1252 |  |  |         author = soup.find('small', class_="author-credit-name").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1253 |  |  |         assert author.startswith('by ') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1254 |  |  |         author = author[3:] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1255 |  |  |         imgs = soup.find_all('img', id='main-comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1256 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1257 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1258 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1259 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1260 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1261 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1262 |  |  |             'prefix': '%d-' % num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1263 |  |  |             'img': [convert_iri_to_plain_ascii_uri(urljoin_wrapper(cls.url, i['src'])) for i in imgs] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1264 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1265 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1266 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1267 |  |  | class MrLovenstein(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1268 |  |  |     """Class to retrieve Mr Lovenstein comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1269 |  |  |     # Also on https://tapastic.com/series/MrLovenstein | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1270 |  |  |     name = 'mrlovenstein' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1271 |  |  |     long_name = 'Mr. Lovenstein' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1272 |  |  |     url = 'http://www.mrlovenstein.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1273 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1274 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1275 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1276 |  |  |         """Generator to get the next comic. Implementation of GenericComic's abstract method.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1277 |  |  |         # TODO: more info from http://www.mrlovenstein.com/archive | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1278 |  |  |         comic_num_re = re.compile('^/comic/([0-9]*)$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1279 |  |  |         nums = [int(comic_num_re.match(link['href']).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1280 |  |  |                 for link in get_soup_at_url(cls.url).find_all('a', href=comic_num_re)] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1281 |  |  |         first, last = min(nums), max(nums) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1282 |  |  |         if last_comic: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1283 |  |  |             first = last_comic['num'] + 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1284 |  |  |         for num in range(first, last + 1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1285 |  |  |             url = urljoin_wrapper(cls.url, '/comic/%d' % num) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1286 |  |  |             soup = get_soup_at_url(url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1287 |  |  |             imgs = list( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1288 |  |  |                 reversed(soup.find_all('img', src=re.compile('^/images/comics/')))) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1289 |  |  |             description = soup.find('meta', attrs={'name': 'description'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1290 |  |  |             yield { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1291 |  |  |                 'url': url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1292 |  |  |                 'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1293 |  |  |                 'texts': '  '.join(t for t in (i.get('title') for i in imgs) if t), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1294 |  |  |                 'img': [urljoin_wrapper(url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1295 |  |  |                 'description': description, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1296 |  |  |             } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1297 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1298 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1299 |  |  | class DinosaurComics(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1300 |  |  |     """Class to retrieve Dinosaur Comics comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1301 |  |  |     name = 'dinosaur' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1302 |  |  |     long_name = 'Dinosaur Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1303 |  |  |     url = 'http://www.qwantz.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1304 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1305 |  |  |     comic_link_re = re.compile('^%s/index.php\\?comic=([0-9]*)$' % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1306 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1307 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1308 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1309 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive.php') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1310 |  |  |         # first link is random -> skip it | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1311 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', href=cls.comic_link_re)[1:]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1312 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1313 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1314 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1315 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1316 |  |  |         url = cls.get_url_from_archive_element(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1317 |  |  |         num = int(cls.comic_link_re.match(url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1318 |  |  |         date_str = link.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1319 |  |  |         text = link.next_sibling.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1320 |  |  |         day = string_to_date(remove_st_nd_rd_th_from_date(date_str), "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1321 |  |  |         comic_img_re = re.compile('^%s/comics/' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1322 |  |  |         img = soup.find('img', src=comic_img_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1323 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1324 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1325 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1326 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1327 |  | View Code Duplication |             'img': [img.get('src')], | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1328 |  |  |             'title': img.get('title'), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1329 |  |  |             'text': text, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1330 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1331 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1332 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1333 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1334 |  |  | class ButterSafe(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1335 |  |  |     """Class to retrieve Butter Safe comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1336 |  |  |     name = 'butter' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1337 |  |  |     long_name = 'ButterSafe' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1338 |  |  |     url = 'http://buttersafe.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1339 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1340 |  |  |     comic_link_re = re.compile('^%s/([0-9]*)/([0-9]*)/([0-9]*)/.*' % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1341 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1342 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1343 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1344 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive/') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1345 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', href=cls.comic_link_re)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1346 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1347 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1348 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1349 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1350 |  |  |         url = cls.get_url_from_archive_element(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1351 |  |  |         title = link.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1352 |  |  |         year, month, day = [int(s) for s in cls.comic_link_re.match(url).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1353 |  |  |         img = soup.find('div', id='comic').find('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1354 |  |  |         assert img['alt'] == title | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1355 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1356 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1357 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1358 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1359 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1360 |  |  |             'img': [img['src']], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1361 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1362 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1363 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1364 |  |  | class CalvinAndHobbes(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1365 |  |  |     """Class to retrieve Calvin and Hobbes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1366 |  |  |     # Also on http://www.gocomics.com/calvinandhobbes/ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1367 |  |  |     name = 'calvin' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1368 |  |  |     long_name = 'Calvin and Hobbes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1369 |  |  |     # This is not through any official webpage but eh... | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1370 |  |  |     url = 'http://marcel-oehler.marcellosendos.ch/comics/ch/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1371 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1372 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1373 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1374 |  |  |         """Generator to get the next comic. Implementation of GenericComic's abstract method.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1375 |  |  |         last_date = get_date_for_comic( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1376 |  |  |             last_comic) if last_comic else date(1985, 11, 1) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1377 |  |  |         link_re = re.compile('^([0-9]*)/([0-9]*)/') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1378 |  |  |         img_re = re.compile('') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1379 |  |  |         for link in get_soup_at_url(cls.url).find_all('a', href=link_re): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1380 |  |  |             url = link['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1381 |  |  |             year, month = link_re.match(url).groups() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1382 |  |  |             if date(int(year), int(month), 1) + timedelta(days=31) >= last_date: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1383 |  |  |                 img_re = re.compile('^%s%s([0-9]*)' % (year, month)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1384 |  |  |                 month_url = urljoin_wrapper(cls.url, url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1385 |  |  |                 for img in get_soup_at_url(month_url).find_all('img', src=img_re): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1386 |  |  |                     img_src = img['src'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1387 |  |  |                     day = int(img_re.match(img_src).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1388 |  |  |                     comic_date = date(int(year), int(month), day) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1389 |  |  |                     if comic_date > last_date: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1390 |  |  |                         yield { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1391 |  |  |                             'url': month_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1392 |  |  |                             'year': int(year), | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1393 |  | View Code Duplication |                             'month': int(month), | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1394 |  |  |                             'day': int(day), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1395 |  |  |                             'img': ['%s%s/%s/%s' % (cls.url, year, month, img_src)], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1396 |  |  |                         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1397 |  |  |                         last_date = comic_date | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1398 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1399 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1400 |  |  | class AbstruseGoose(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1401 |  |  |     """Class to retrieve AbstruseGoose Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1402 |  |  |     name = 'abstruse' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1403 |  |  |     long_name = 'Abstruse Goose' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1404 |  |  |     url = 'http://abstrusegoose.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1405 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1406 |  |  |     comic_url_re = re.compile('^%s/([0-9]*)$' % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1407 |  |  |     comic_img_re = re.compile('^%s/strips/.*' % url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1408 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1409 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1410 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1411 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1412 |  |  |         return get_soup_at_url(archive_url).find_all('a', href=cls.comic_url_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1413 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1414 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1415 |  |  |     def get_comic_info(cls, soup, archive_elt): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1416 |  |  |         comic_url = cls.get_url_from_archive_element(archive_elt) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1417 |  |  |         num = int(cls.comic_url_re.match(comic_url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1418 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1419 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1420 |  |  |             'title': archive_elt.string, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1421 |  |  |             'img': [soup.find('img', src=cls.comic_img_re)['src']] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1422 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1423 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1424 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1425 |  |  | class PhDComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1426 |  |  |     """Class to retrieve PHD Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1427 |  |  |     name = 'phd' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1428 |  |  |     long_name = 'PhD Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1429 |  |  |     url = 'http://phdcomics.com/comics/archive.php' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1430 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1431 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1432 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1433 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1434 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1435 |  |  |         return get_soup_at_url(cls.url).find('img', src='images/first_button.gif').parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1436 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1437 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1438 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1439 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1440 |  |  |         img = last_soup.find('img', src='images/next_button.gif' if next_ else 'images/prev_button.gif') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1441 |  |  |         return None if img is None else img.parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1442 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1443 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1444 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1445 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1446 |  |  |         date_str = soup.find('font', face='Arial,Helvetica,Geneva,Swiss,SunSans-Regular', color='white').string.strip() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1447 |  |  |         try: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1448 |  |  |             day = string_to_date(date_str, '%m/%d/%Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1449 |  |  |         except ValueError: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1450 |  |  |             print("Invalid date %s" % date_str) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1451 |  |  |             day = date.today() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1452 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:title'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1453 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1454 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1455 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1456 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1457 |  |  |             'img': [soup.find('img', id='comic')['src']], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1458 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1459 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1460 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1461 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1462 |  |  | class Octopuns(GenericEmptyComic, GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1463 |  |  |     """Class to retrieve Octopuns comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1464 |  |  |     # Also on http://octopuns.tumblr.com | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1465 |  | View Code Duplication |     name = 'octopuns' | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1466 |  |  |     long_name = 'Octopuns' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1467 |  |  |     url = 'http://www.octopuns.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1468 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1469 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1470 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1471 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1472 |  |  |         return get_soup_at_url(cls.url).find('img', src=re.compile('.*/First.png')).parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1473 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1474 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1475 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1476 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1477 |  |  |         link = last_soup.find('img', src=re.compile('.*/Next.png' if next_ else '.*/Back.png')).parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1478 |  |  |         return None if link.get('href') is None else link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1479 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1480 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1481 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1482 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1483 |  |  |         title = soup.find('h3', class_='post-title entry-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1484 |  |  |         date_str = soup.find('h2', class_='date-header').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1485 |  |  |         day = string_to_date(date_str, "%A, %B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1486 |  |  |         imgs = soup.find_all('link', rel='image_src') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1487 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1488 |  |  |             'img': [i['href'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1489 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1490 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1491 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1492 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1493 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1494 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1495 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1496 |  |  | class Quarktees(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1497 |  |  |     """Class to retrieve the Quarktees comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1498 |  |  |     name = 'quarktees' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1499 |  |  |     long_name = 'Quarktees' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1500 |  |  |     url = 'http://www.quarktees.com/blogs/news' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1501 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1502 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1503 |  |  |     first_url = 'http://www.quarktees.com/blogs/news/12486621-coming-soon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1504 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1505 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1506 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1507 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1508 |  |  |         return last_soup.find('a', id='article-next' if next_ else 'article-prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1509 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1510 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1511 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1512 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1513 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1514 |  |  |         article = soup.find('div', class_='single-article') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1515 |  |  |         imgs = article.find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1516 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1517 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1518 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1519 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1520 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1521 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1522 |  |  | class OverCompensating(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1523 |  |  |     """Class to retrieve the Over Compensating comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1524 |  |  |     name = 'compensating' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1525 |  |  |     long_name = 'Over Compensating' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1526 |  |  |     url = 'http://www.overcompensating.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1527 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1528 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1529 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1530 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1531 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1532 |  |  |         return get_soup_at_url(cls.url).find('a', href=re.compile('comic=1$')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1533 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1534 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1535 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1536 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1537 |  |  |         return last_soup.find('a', title='next comic' if next_ else 'go back already') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1538 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1539 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1540 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1541 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1542 |  |  |         img_src_re = re.compile('^/oc/comics/.*') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1543 |  |  |         comic_num_re = re.compile('.*comic=([0-9]*)$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1544 |  |  |         comic_url = cls.get_url_from_link(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1545 |  |  |         num = int(comic_num_re.match(comic_url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1546 |  |  |         img = soup.find('img', src=img_src_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1547 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1548 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1549 |  |  |             'img': [urljoin_wrapper(comic_url, img['src'])], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1550 |  |  |             'title': img.get('title') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1551 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1552 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1553 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1554 |  |  | class Oglaf(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1555 |  |  |     """Class to retrieve Oglaf comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1556 |  |  |     name = 'oglaf' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1557 |  |  |     long_name = 'Oglaf [NSFW]' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1558 |  |  |     url = 'http://oglaf.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1559 |  |  |     _categories = ('NSFW', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1560 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1561 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1562 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1563 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1564 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1565 |  |  |         return get_soup_at_url(cls.url).find("div", id="st").parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1566 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1567 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1568 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1569 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1570 |  |  |         div = last_soup.find("div", id="nx" if next_ else "pvs") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1571 |  |  |         return div.parent if div else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1572 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1573 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1574 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1575 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1576 |  |  |         title = soup.find('title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1577 |  |  |         title_imgs = soup.find('div', id='tt').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1578 |  |  |         assert len(title_imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1579 |  |  |         strip_imgs = soup.find_all('img', id='strip') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1580 |  |  |         assert len(strip_imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1581 |  |  |         imgs = title_imgs + strip_imgs | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1582 |  |  |         desc = ' '.join(i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1583 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1584 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1585 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1586 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1587 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1588 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1589 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1590 |  |  | class ScandinaviaAndTheWorld(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1591 |  |  |     """Class to retrieve Scandinavia And The World comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1592 |  |  |     name = 'satw' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1593 |  |  |     long_name = 'Scandinavia And The World' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1594 |  |  |     url = 'http://satwcomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1595 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1596 |  |  |     first_url = 'http://satwcomic.com/sweden-denmark-and-norway' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1597 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1598 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1599 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1600 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1601 |  |  |         return last_soup.find('a', accesskey='n' if next_ else 'p') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1602 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1603 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1604 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1605 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1606 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:label1'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1607 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1608 |  |  |         imgs = soup.find_all('img', itemprop="image") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1609 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1610 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1611 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1612 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1613 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1614 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1615 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1616 |  |  | class SomethingOfThatIlk(GenericEmptyComic):  # Does not exist anymore | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1617 |  |  |     """Class to retrieve the Something Of That Ilk comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1618 |  |  |     name = 'somethingofthatilk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1619 |  |  |     long_name = 'Something Of That Ilk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1620 |  |  |     url = 'http://www.somethingofthatilk.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1621 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1622 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1623 |  |  | class InfiniteMonkeyBusiness(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1624 |  |  |     """Generic class to retrieve InfiniteMonkeyBusiness comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1625 |  |  |     name = 'monkey' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1626 |  |  |     long_name = 'Infinite Monkey Business' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1627 |  |  |     url = 'http://infinitemonkeybusiness.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1628 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1629 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1630 |  |  |     first_url = 'http://infinitemonkeybusiness.net/comic/pillory/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1631 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1632 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1633 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1634 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1635 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1636 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1637 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1638 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1639 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1640 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1641 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1642 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1643 |  |  | class Wondermark(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1644 |  |  |     """Class to retrieve the Wondermark comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1645 |  |  |     name = 'wondermark' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1646 |  |  |     long_name = 'Wondermark' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1647 |  |  |     url = 'http://wondermark.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1648 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1649 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1650 |  | View Code Duplication |     @classmethod | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1651 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1652 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive/') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1653 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', rel='bookmark')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1654 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1655 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1656 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1657 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1658 |  |  |         date_str = soup.find('div', class_='postdate').find('em').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1659 |  |  |         day = string_to_date(remove_st_nd_rd_th_from_date(date_str), "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1660 |  |  |         div = soup.find('div', id='comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1661 |  |  |         if div: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1662 |  |  |             img = div.find('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1663 |  |  |             img_src = [img['src']] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1664 |  |  |             alt = img['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1665 |  |  |             assert alt == img['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1666 |  |  |             title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1667 |  |  |         else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1668 |  |  |             img_src = [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1669 |  |  |             alt = '' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1670 |  |  |             title = '' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1671 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1672 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1673 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1674 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1675 |  |  |             'img': img_src, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1676 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1677 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1678 |  |  |             'tags': ' '.join(t.string for t in soup.find('div', class_='postmeta').find_all('a', rel='tag')), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1679 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1680 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1681 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1682 |  |  | class WarehouseComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1683 |  |  |     """Class to retrieve Warehouse Comic comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1684 |  |  |     name = 'warehouse' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1685 |  |  |     long_name = 'Warehouse Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1686 |  |  |     url = 'http://warehousecomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1687 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1688 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1689 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1690 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1691 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1692 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1693 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1694 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1695 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1696 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1697 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1698 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1699 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1700 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1701 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1702 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1703 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1704 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1705 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1706 |  |  | class JustSayEh(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1707 |  |  |     """Class to retrieve Just Say Eh comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1708 |  |  |     # Also on http//tapastic.com/series/Just-Say-Eh | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1709 |  |  |     name = 'justsayeh' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1710 |  |  |     long_name = 'Just Say Eh' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1711 |  |  |     url = 'http://www.justsayeh.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1712 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1713 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1714 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1715 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1716 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1717 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1718 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1719 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1720 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1721 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1722 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1723 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1724 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1725 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1726 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1727 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1728 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1729 |  | View Code Duplication | class MouseBearComedy(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1730 |  |  |     """Class to retrieve Mouse Bear Comedy comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1731 |  |  |     # Also on http://mousebearcomedy.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1732 |  |  |     name = 'mousebear' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1733 |  |  |     long_name = 'Mouse Bear Comedy' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1734 |  |  |     url = 'http://www.mousebearcomedy.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1735 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1736 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1737 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1738 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1739 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1740 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1741 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1742 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1743 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1744 |  |  |         day = string_to_date(date_str, '%B %d, %Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1745 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1746 |  |  |         assert all(i['alt'] == i['title'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1747 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1748 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1749 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1750 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1751 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1752 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1753 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1754 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1755 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1756 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1757 |  |  | class BigFootJustice(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1758 |  |  |     """Class to retrieve Big Foot Justice comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1759 |  |  |     # Also on http://tapastic.com/series/bigfoot-justice | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1760 |  |  |     name = 'bigfoot' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1761 |  |  |     long_name = 'Big Foot Justice' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1762 |  |  |     url = 'http://bigfootjustice.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1763 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1764 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1765 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1766 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1767 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1768 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1769 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1770 |  |  |         assert all(i['title'] == i['alt'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1771 |  |  |         title = ' '.join(i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1772 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1773 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1774 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1775 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1776 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1777 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1778 |  |  | class RespawnComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1779 |  |  |     """Class to retrieve Respawn Comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1780 |  |  |     # Also on http://respawncomic.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1781 |  |  |     name = 'respawn' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1782 |  |  |     long_name = 'Respawn Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1783 |  |  |     url = 'http://respawncomic.com ' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1784 |  |  |     _categories = ('RESPAWN', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1785 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1786 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1787 |  |  |     first_url = 'http://respawncomic.com/comic/c0001/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1788 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1789 |  | View Code Duplication |     @classmethod | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1790 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1791 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1792 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1793 |  |  |         author = soup.find('meta', attrs={'name': 'shareaholic:article_author_name'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1794 |  |  |         date_str = soup.find('meta', attrs={'name': 'shareaholic:article_published_time'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1795 |  |  |         date_str = date_str[:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1796 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1797 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1798 |  |  |         skip_imgs = { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1799 |  |  |             'http://respawncomic.com/wp-content/uploads/2016/03/site/HAROLD2.png', | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1800 |  |  |             'http://respawncomic.com/wp-content/uploads/2016/03/site/DEVA.png' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1801 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1802 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1803 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1804 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1805 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1806 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1807 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1808 |  |  |             'img': [i['content'] for i in imgs if i['content'] not in skip_imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1809 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1810 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1811 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1812 |  |  | class SafelyEndangered(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1813 |  |  |     """Class to retrieve Safely Endangered comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1814 |  |  |     # Also on http://tumblr.safelyendangered.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1815 |  |  |     name = 'endangered' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1816 |  |  |     long_name = 'Safely Endangered' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1817 |  |  |     url = 'http://www.safelyendangered.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1818 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1819 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1820 |  |  |     first_url = 'http://www.safelyendangered.com/comic/ignored/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1821 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1822 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1823 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1824 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1825 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1826 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1827 |  |  |         day = string_to_date(date_str, '%B %d, %Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1828 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1829 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1830 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1831 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1832 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1833 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1834 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1835 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1836 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1837 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1838 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1839 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1840 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1841 |  | View Code Duplication | class PicturesInBoxes(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1842 |  |  |     """Class to retrieve Pictures In Boxes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1843 |  |  |     # Also on http://picturesinboxescomic.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1844 |  |  |     name = 'picturesinboxes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1845 |  |  |     long_name = 'Pictures in Boxes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1846 |  |  |     url = 'http://www.picturesinboxes.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1847 |  |  |     get_navi_link = get_a_navi_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1848 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1849 |  |  |     first_url = 'http://www.picturesinboxes.com/2013/10/26/tetris/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1850 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1851 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1852 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1853 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1854 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1855 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1856 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1857 |  |  |         day = string_to_date(date_str, '%B %d, %Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1858 |  |  |         imgs = soup.find('div', class_='comicpane').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1859 |  |  |         assert imgs | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1860 |  |  |         assert all(i['title'] == i['alt'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1861 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1862 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1863 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1864 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1865 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1866 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1867 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1868 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1869 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1870 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1871 |  |  | class Penmen(GenericEmptyComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1872 |  |  |     """Class to retrieve Penmen comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1873 |  |  |     name = 'penmen' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1874 |  |  |     long_name = 'Penmen' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1875 |  |  |     url = 'http://penmen.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1876 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1877 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1878 |  |  | class TheDoghouseDiaries(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1879 |  |  |     """Class to retrieve The Dog House Diaries comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1880 |  |  |     name = 'doghouse' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1881 |  |  |     long_name = 'The Dog House Diaries' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1882 |  |  |     url = 'http://thedoghousediaries.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1883 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1884 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1885 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1886 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1887 |  |  |         return get_soup_at_url(cls.url).find('a', id='firstlink') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1888 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1889 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1890 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1891 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1892 |  |  |         return last_soup.find('a', id='nextlink' if next_ else 'previouslink') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1893 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1894 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1895 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1896 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1897 |  |  |         comic_img_re = re.compile('^dhdcomics/.*') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1898 |  |  |         img = soup.find('img', src=comic_img_re) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1899 |  |  |         comic_url = cls.get_url_from_link(link) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1900 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1901 |  |  |             'title': soup.find('h2', id='titleheader').string, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1902 |  |  |             'title2': soup.find('div', id='subtext').string, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1903 |  |  |             'alt': img.get('title'), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1904 |  |  |             'img': [urljoin_wrapper(comic_url, img['src'].strip())], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1905 |  |  |             'num': int(comic_url.split('/')[-1]), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1906 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1907 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1908 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1909 |  |  | class InvisibleBread(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1910 |  |  |     """Class to retrieve Invisible Bread comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1911 |  |  |     # Also on http://www.gocomics.com/invisible-bread | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1912 |  |  |     name = 'invisiblebread' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1913 |  |  |     long_name = 'Invisible Bread' | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 1914 |  | View Code Duplication |     url = 'http://invisiblebread.com' | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1915 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1916 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1917 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1918 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archives/') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1919 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('td', class_='archive-title')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1920 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1921 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1922 |  |  |     def get_url_from_archive_element(cls, td): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1923 |  |  |         return td.find('a')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1924 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1925 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1926 |  |  |     def get_comic_info(cls, soup, td): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1927 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1928 |  |  |         url = cls.get_url_from_archive_element(td) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1929 |  |  |         title = td.find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1930 |  |  |         month_and_day = td.previous_sibling.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1931 |  |  |         link_re = re.compile('^%s/([0-9]+)/' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1932 |  |  |         year = link_re.match(url).groups()[0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1933 |  |  |         date_str = month_and_day + ' ' + year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1934 |  |  |         day = string_to_date(date_str, '%b %d %Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1935 |  |  |         imgs = [soup.find('div', id='comic').find('img')] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1936 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1937 |  |  |         assert all(i['title'] == i['alt'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1938 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1939 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1940 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1941 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1942 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1943 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1944 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1945 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1946 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1947 |  |  | class DiscoBleach(GenericEmptyComic):  # Does not work anymore | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1948 |  |  |     """Class to retrieve Disco Bleach Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1949 |  |  |     name = 'discobleach' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1950 |  |  |     long_name = 'Disco Bleach' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1951 |  |  |     url = 'http://discobleach.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1952 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1953 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1954 |  |  | class TubeyToons(GenericEmptyComic):  # Does not work anymore | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1955 |  |  |     """Class to retrieve TubeyToons comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1956 |  |  |     # Also on http://tapastic.com/series/Tubey-Toons | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1957 |  |  |     # Also on http://tubeytoons.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1958 |  |  |     name = 'tubeytoons' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1959 |  |  |     long_name = 'Tubey Toons' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1960 |  |  |     url = 'http://tubeytoons.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1961 |  |  |     _categories = ('TUNEYTOONS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1962 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1963 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1964 |  |  | class CompletelySeriousComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1965 |  |  |     """Class to retrieve Completely Serious comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1966 |  |  |     name = 'completelyserious' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1967 |  |  |     long_name = 'Completely Serious Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1968 |  |  |     url = 'http://completelyseriouscomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1969 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1970 |  |  |     get_navi_link = get_a_navi_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1971 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1972 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1973 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1974 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1975 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1976 |  |  |         author = soup.find('span', class_='post-author').contents[1].string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1977 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1978 |  |  |         day = string_to_date(date_str, '%B %d, %Y') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1979 |  |  |         imgs = soup.find('div', class_='comicpane').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1980 |  |  |         assert imgs | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1981 |  |  |         alt = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1982 |  |  |         assert all(i['title'] == i['alt'] == alt for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1983 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1984 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1985 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1986 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1987 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1988 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1989 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1990 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1991 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1992 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1993 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1994 |  |  | class PoorlyDrawnLines(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1995 |  |  |     """Class to retrieve Poorly Drawn Lines comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1996 |  |  |     # Also on http://pdlcomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1997 |  |  |     name = 'poorlydrawn' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1998 |  |  |     long_name = 'Poorly Drawn Lines' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 1999 |  |  |     url = 'http://poorlydrawnlines.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2000 |  |  |     _categories = ('POORLYDRAWN', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2001 |  |  |     get_url_from_archive_element = get_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2002 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2003 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2004 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2005 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2006 |  |  |         imgs = soup.find('div', class_='post').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2007 |  |  |         assert len(imgs) <= 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2008 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2009 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2010 |  |  |             'title': imgs[0].get('title', "") if imgs else "", | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2011 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2012 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2013 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2014 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2015 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2016 |  |  |         url_re = re.compile('^%s/comic/.' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2017 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', href=url_re)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2018 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2019 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2020 |  |  | class LoadingComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2021 |  |  |     """Class to retrieve Loading Artist comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2022 |  |  |     name = 'loadingartist' | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2023 |  | View Code Duplication |     long_name = 'Loading Artist' | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2024 |  |  |     url = 'http://www.loadingartist.com/latest' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2025 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2026 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2027 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2028 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2029 |  |  |         return get_soup_at_url(cls.url).find('a', title="First") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2030 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2031 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2032 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2033 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2034 |  |  |         return last_soup.find('a', title='Next' if next_ else 'Previous') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2035 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2036 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2037 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2038 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2039 |  |  |         title = soup.find('h1').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2040 |  |  |         date_str = soup.find('span', class_='date').string.strip() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2041 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2042 |  |  |         imgs = soup.find('div', class_='comic').find_all('img', alt='', title='') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2043 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2044 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2045 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2046 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2047 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2048 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2049 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2050 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2051 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2052 |  |  | class ChuckleADuck(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2053 |  |  |     """Class to retrieve Chuckle-A-Duck comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2054 |  |  |     name = 'chuckleaduck' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2055 |  |  |     long_name = 'Chuckle-A-duck' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2056 |  |  |     url = 'http://chuckleaduck.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2057 |  |  |     get_first_comic_link = get_div_navfirst_a | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2058 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2059 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2060 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2061 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2062 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2063 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2064 |  |  |         day = string_to_date(remove_st_nd_rd_th_from_date(date_str), "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2065 |  |  |         author = soup.find('span', class_='post-author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2066 |  |  |         div = soup.find('div', id='comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2067 |  |  |         imgs = div.find_all('img') if div else [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2068 |  |  |         title = imgs[0]['title'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2069 |  |  |         assert all(i['title'] == i['alt'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2070 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2071 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2072 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2073 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2074 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2075 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2076 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2077 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2078 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2079 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2080 |  |  | class DepressedAlien(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2081 |  |  |     """Class to retrieve Depressed Alien Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2082 |  |  |     name = 'depressedalien' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2083 |  |  |     long_name = 'Depressed Alien' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2084 |  |  |     url = 'http://depressedalien.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2085 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2086 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2087 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2088 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2089 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2090 |  |  |         return get_soup_at_url(cls.url).find('img', attrs={'name': 'beginArrow'}).parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2091 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2092 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2093 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2094 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2095 |  |  |         return last_soup.find('img', attrs={'name': 'rightArrow' if next_ else 'leftArrow'}).parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2096 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2097 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2098 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2099 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2100 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:title'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2101 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2102 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2103 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2104 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2105 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2106 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2107 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2108 |  |  | class ThingsInSquares(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2109 |  |  |     """Class to retrieve Things In Squares comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2110 |  |  |     # This can be retrieved in other languages | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2111 |  |  |     # Also on https://tapastic.com/series/Things-in-Squares | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2112 |  |  |     name = 'squares' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2113 |  |  |     long_name = 'Things in squares' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2114 |  |  |     url = 'http://www.thingsinsquares.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2115 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2116 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2117 |  |  |     def get_comic_info(cls, soup, tr): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2118 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2119 |  |  |         _, td2, td3 = tr.find_all('td') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2120 |  |  |         a = td2.find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2121 |  |  |         date_str = td3.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2122 |  |  |         day = string_to_date(date_str, "%m.%d.%y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2123 |  |  |         title = a.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2124 |  |  |         title2 = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2125 |  |  |         desc = soup.find('meta', property='og:description') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2126 |  |  |         description = desc['content'] if desc else '' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2127 |  |  |         tags = ' '.join(t['content'] for t in soup.find_all('meta', property='article:tag')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2128 |  |  |         imgs = soup.find('div', class_='entry-content').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2129 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2130 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2131 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2132 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2133 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2134 |  |  |             'title2': title2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2135 |  |  |             'description': description, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2136 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2137 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2138 |  |  |             'alt': ' '.join(i['alt'] for i in imgs), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2139 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2140 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2141 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2142 |  |  |     def get_url_from_archive_element(cls, tr): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2143 |  |  |         _, td2, td3 = tr.find_all('td') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2144 |  |  |         return td2.find('a')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2145 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2146 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2147 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2148 |  |  |         archive_url = urljoin_wrapper(cls.url, 'archive-2') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2149 |  |  |         return reversed(get_soup_at_url(archive_url).find('tbody').find_all('tr')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2150 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2151 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2152 |  |  | class HappleTea(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2153 |  |  |     """Class to retrieve Happle Tea Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2154 |  |  |     name = 'happletea' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2155 |  |  |     long_name = 'Happle Tea' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2156 |  |  |     url = 'http://www.happletea.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2157 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2158 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2159 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2160 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2161 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2162 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2163 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2164 |  |  |         post = soup.find('div', class_='post-content') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2165 |  |  |         title = post.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2166 |  |  |         author = post.find('a', rel='author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2167 |  |  |         date_str = post.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2168 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2169 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2170 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2171 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2172 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2173 |  |  |             'alt': ''.join(i['alt'] for i in imgs), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2174 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2175 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2176 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2177 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2178 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2179 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2180 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2181 |  |  | class FatAwesomeComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2182 |  |  |     """Class to retrieve Fat Awesome Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2183 |  |  |     # Also on http://fatawesomecomedy.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2184 |  |  |     name = 'fatawesome' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2185 |  |  |     long_name = 'Fat Awesome' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2186 |  |  |     url = 'http://fatawesome.com/comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2187 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2188 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2189 |  |  |     first_url = 'http://fatawesome.com/shortbus/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2190 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2191 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2192 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2193 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2194 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:title'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2195 |  |  |         description = soup.find('meta', attrs={'name': 'description'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2196 |  |  |         tags_prop = soup.find('meta', property='article:tag') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2197 |  |  |         tags = tags_prop['content'] if tags_prop else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2198 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2199 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2200 |  |  |         imgs = soup.find_all('img', attrs={'data-recalc-dims': "1"}) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2201 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2202 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2203 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2204 |  |  |             'description': description, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2205 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2206 |  |  |             'alt': "".join(i['alt'] for i in imgs), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2207 |  |  |             'img': [i['src'].rsplit('?', 1)[0] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2208 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2209 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2210 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2211 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2212 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2213 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2214 |  |  | class AnythingComic(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2215 |  |  |     """Class to retrieve Anything Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2216 |  |  |     # Also on http://tapastic.com/series/anything | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2217 |  |  |     name = 'anythingcomic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2218 |  |  |     long_name = 'Anything Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2219 |  |  |     url = 'http://www.anythingcomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2220 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2221 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2222 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2223 |  | View Code Duplication |         archive_url = urljoin_wrapper(cls.url, 'archive/') | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2224 |  |  |         # The first 2 <tr>'s do not correspond to comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2225 |  |  |         return get_soup_at_url(archive_url).find('table', id='chapter_table').find_all('tr')[2:] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2226 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2227 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2228 |  |  |     def get_url_from_archive_element(cls, tr): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2229 |  |  |         """Get url corresponding to an archive element.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2230 |  |  |         td_num, td_comic, td_date, _ = tr.find_all('td') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2231 |  |  |         link = td_comic.find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2232 |  |  |         return urljoin_wrapper(cls.url, link['href']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2233 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2234 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2235 |  |  |     def get_comic_info(cls, soup, tr): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2236 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2237 |  |  |         td_num, td_comic, td_date, _ = tr.find_all('td') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2238 |  |  |         num = int(td_num.string) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2239 |  |  |         link = td_comic.find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2240 |  |  |         title = link.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2241 |  |  |         imgs = soup.find_all('img', id='comic_image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2242 |  |  |         date_str = td_date.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2243 |  |  |         day = string_to_date(remove_st_nd_rd_th_from_date(date_str), "%B %d, %Y, %I:%M %p") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2244 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2245 |  |  |         assert all(i.get('alt') == i.get('title') for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2246 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2247 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2248 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2249 |  |  |             'alt': imgs[0].get('alt', ''), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2250 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2251 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2252 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2253 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2254 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2255 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2256 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2257 |  |  | class LonnieMillsap(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2258 |  |  |     """Class to retrieve Lonnie Millsap's comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2259 |  |  |     name = 'millsap' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2260 |  |  |     long_name = 'Lonnie Millsap' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2261 |  |  |     url = 'http://www.lonniemillsap.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2262 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2263 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2264 |  |  |     first_url = 'http://www.lonniemillsap.com/?p=42' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2265 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2266 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2267 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2268 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2269 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2270 |  |  |         post = soup.find('div', class_='post-content') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2271 |  |  |         author = post.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2272 |  |  |         date_str = post.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2273 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2274 |  |  |         imgs = post.find("div", class_="entry").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2275 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2276 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2277 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2278 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2279 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2280 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2281 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2282 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2283 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2284 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2285 |  |  | class LinsEditions(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2286 |  |  |     """Class to retrieve L.I.N.S. Editions comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2287 |  |  |     # Also on http://linscomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2288 |  |  |     # Now on https://warandpeas.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2289 |  |  |     name = 'lins' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2290 |  |  |     long_name = 'L.I.N.S. Editions' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2291 |  |  |     url = 'https://linsedition.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2292 |  |  |     _categories = ('LINS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2293 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2294 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2295 |  |  |     first_url = 'https://linsedition.com/2011/09/07/l-i-n-s/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2296 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2297 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2298 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2299 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2300 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2301 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2302 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2303 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2304 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2305 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2306 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2307 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2308 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2309 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2310 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2311 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2312 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2313 |  |  | class ThorsThundershack(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2314 |  |  |     """Class to retrieve Thor's Thundershack comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2315 |  |  |     # Also on http://tapastic.com/series/Thors-Thundershac | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2316 |  |  |     name = 'thor' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2317 |  |  |     long_name = 'Thor\'s Thundershack' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2318 |  |  |     url = 'http://www.thorsthundershack.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2319 |  |  |     _categories = ('THOR', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2320 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2321 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2322 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2323 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2324 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2325 |  |  |         return get_soup_at_url(cls.url).find('a', class_='first navlink') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2326 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2327 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2328 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2329 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2330 |  |  |         for link in last_soup.find_all('a', rel='next' if next_ else 'prev'): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2331 |  |  |             if link['href'] != '/comic': | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2332 |  |  |                 return link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2333 |  |  |         return None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2334 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2335 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2336 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2337 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2338 |  |  |         title = soup.find('meta', attrs={'name': 'description'})["content"] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2339 |  |  |         description = soup.find('div', itemprop='articleBody').text | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2340 |  |  |         author = soup.find('span', itemprop='author copyrightHolder').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2341 |  |  |         imgs = soup.find_all('img', itemprop='image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2342 |  |  |         assert all(i['title'] == i['alt'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2343 |  |  |         alt = imgs[0]['alt'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2344 |  |  |         date_str = soup.find('time', itemprop='datePublished')["datetime"] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2345 |  |  |         day = string_to_date(date_str, "%Y-%m-%d %H:%M:%S") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2346 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2347 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2348 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2349 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2350 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2351 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2352 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2353 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2354 |  |  |             'description': description, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2355 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2356 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2357 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2358 |  | View Code Duplication | class GerbilWithAJetpack(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2359 |  |  |     """Class to retrieve GerbilWithAJetpack comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2360 |  |  |     name = 'gerbil' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2361 |  |  |     long_name = 'Gerbil With A Jetpack' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2362 |  |  |     url = 'http://gerbilwithajetpack.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2363 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2364 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2365 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2366 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2367 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2368 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2369 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2370 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2371 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2372 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2373 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2374 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2375 |  |  |         assert all(i['alt'] == i['title'] == alt for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2376 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2377 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2378 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2379 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2380 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2381 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2382 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2383 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2384 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2385 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2386 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2387 |  | View Code Duplication | class EveryDayBlues(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2388 |  |  |     """Class to retrieve EveryDayBlues Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2389 |  |  |     name = "blues" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2390 |  |  |     long_name = "Every Day Blues" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2391 |  |  |     url = "http://everydayblues.net" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2392 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2393 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2394 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2395 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2396 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2397 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2398 |  |  |         title = soup.find("h2", class_="post-title").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2399 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2400 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2401 |  |  |         day = string_to_date(date_str, "%d. %B %Y", "de_DE.utf8") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2402 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2403 |  |  |         assert all(i['alt'] == i['title'] == title for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2404 |  |  |         assert len(imgs) <= 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2405 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2406 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2407 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2408 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2409 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2410 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2411 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2412 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2413 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2414 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2415 |  |  | class BiterComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2416 |  |  |     """Class to retrieve Biter Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2417 |  |  |     name = "biter" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2418 |  |  |     long_name = "Biter Comics" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2419 |  |  |     url = "http://www.bitercomics.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2420 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2421 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2422 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2423 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2424 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2425 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2426 |  |  |         title = soup.find("h1", class_="entry-title").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2427 |  |  |         author = soup.find("span", class_="author vcard").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2428 |  |  |         date_str = soup.find("span", class_="entry-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2429 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2430 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2431 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2432 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2433 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2434 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2435 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2436 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2437 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2438 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2439 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2440 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2441 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2442 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2443 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2444 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2445 |  | View Code Duplication | class TheAwkwardYeti(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2446 |  |  |     """Class to retrieve The Awkward Yeti comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2447 |  |  |     # Also on http://www.gocomics.com/the-awkward-yeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2448 |  |  |     # Also on http://larstheyeti.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2449 |  |  |     # Also on https://tapastic.com/series/TheAwkwardYeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2450 |  |  |     name = 'yeti' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2451 |  |  |     long_name = 'The Awkward Yeti' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2452 |  |  |     url = 'http://theawkwardyeti.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2453 |  |  |     _categories = ('YETI', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2454 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2455 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2456 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2457 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2458 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2459 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2460 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2461 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2462 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2463 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2464 |  |  |         assert all(idx > 0 or i['alt'] == i['title'] for idx, i in enumerate(imgs)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2465 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2466 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2467 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2468 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2469 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2470 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2471 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2472 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2473 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2474 |  |  | class PleasantThoughts(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2475 |  |  |     """Class to retrieve Pleasant Thoughts comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2476 |  |  |     name = 'pleasant' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2477 |  |  |     long_name = 'Pleasant Thoughts' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2478 |  |  |     url = 'http://pleasant-thoughts.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2479 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2480 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2481 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2482 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2483 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2484 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2485 |  |  |         post = soup.find('div', class_='post-content') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2486 |  |  |         title = post.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2487 |  |  |         imgs = post.find("div", class_="entry").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2488 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2489 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2490 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2491 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2492 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2493 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2494 |  |  | class MisterAndMe(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2495 |  |  |     """Class to retrieve Mister & Me Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2496 |  |  |     # Also on http://www.gocomics.com/mister-and-me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2497 |  |  |     # Also on https://tapastic.com/series/Mister-and-Me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2498 |  |  |     name = 'mister' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2499 |  |  |     long_name = 'Mister & Me' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2500 |  |  |     url = 'http://www.mister-and-me.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2501 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2502 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2503 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2504 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2505 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2506 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2507 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2508 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2509 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2510 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2511 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2512 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2513 |  |  |         assert len(imgs) <= 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2514 |  |  |         alt = imgs[0]['alt'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2515 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2516 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2517 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2518 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2519 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2520 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2521 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2522 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2523 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2524 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2525 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2526 |  |  | class LastPlaceComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2527 |  |  |     """Class to retrieve Last Place Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2528 |  |  |     name = 'lastplace' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2529 |  |  |     long_name = 'Last Place Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2530 |  |  |     url = "http://lastplacecomics.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2531 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2532 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2533 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2534 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2535 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2536 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2537 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2538 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2539 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2540 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2541 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2542 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2543 |  |  |         assert len(imgs) <= 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2544 |  |  |         alt = imgs[0]['alt'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2545 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2546 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2547 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2548 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2549 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2550 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2551 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2552 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2553 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2554 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2555 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2556 |  |  | class TalesOfAbsurdity(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2557 |  |  |     """Class to retrieve Tales Of Absurdity comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2558 |  |  |     # Also on http://tapastic.com/series/Tales-Of-Absurdity | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2559 |  |  |     # Also on http://talesofabsurdity.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2560 |  |  |     name = 'absurdity' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2561 |  |  |     long_name = 'Tales of Absurdity' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2562 |  |  |     url = 'http://talesofabsurdity.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2563 |  |  |     _categories = ('ABSURDITY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2564 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2565 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2566 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2567 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2568 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2569 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2570 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2571 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2572 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2573 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2574 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2575 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2576 |  |  |         alt = imgs[0]['alt'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2577 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2578 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2579 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2580 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2581 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2582 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2583 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2584 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2585 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2586 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2587 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2588 |  |  | class EndlessOrigami(GenericEmptyComic, GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2589 |  |  |     """Class to retrieve Endless Origami Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2590 |  |  |     name = "origami" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2591 |  |  |     long_name = "Endless Origami" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2592 |  |  |     url = "http://endlessorigami.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2593 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2594 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2595 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2596 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2597 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2598 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2599 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2600 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2601 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2602 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2603 |  |  |         imgs = soup.find("div", id="comic").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2604 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2605 |  |  |         alt = imgs[0]['alt'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2606 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2607 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2608 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2609 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2610 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2611 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2612 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2613 |  |  |             'year': day.year | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2614 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2615 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2616 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2617 |  |  | class PlanC(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2618 |  |  |     """Class to retrieve Plan C comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2619 |  |  |     name = 'planc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2620 |  |  |     long_name = 'Plan C' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2621 |  |  |     url = 'http://www.plancomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2622 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2623 |  |  |     get_navi_link = get_a_navi_comicnavnext_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2624 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2625 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2626 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2627 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2628 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2629 |  |  |         date_str = soup.find("span", class_="post-date").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2630 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2631 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2632 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2633 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2634 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2635 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2636 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2637 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2638 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2639 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2640 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2641 |  |  | class BuniComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2642 |  |  |     """Class to retrieve Buni Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2643 |  |  |     name = 'buni' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2644 |  |  |     long_name = 'BuniComics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2645 |  |  |     url = 'http://www.bunicomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2646 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2647 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2648 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2649 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2650 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2651 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2652 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2653 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2654 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2655 |  |  |         return { | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2656 |  | View Code Duplication |             'img': [i['src'] for i in imgs], | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2657 |  |  |             'title': imgs[0]['title'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2658 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2659 |  |  |  | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 2660 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 2661 |  |  | class GenericCommitStrip(GenericNavigableComic): | 
            
                                                                        
                            
            
                                    
            
            
                | 2662 |  |  |     """Generic class to retrieve Commit Strips in different languages.""" | 
            
                                                                        
                            
            
                                    
            
            
                | 2663 |  |  |     get_navi_link = get_a_rel_next | 
            
                                                                        
                            
            
                                    
            
            
                | 2664 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                        
                            
            
                                    
            
            
                | 2665 |  |  |     first_url = NotImplemented | 
            
                                                                        
                            
            
                                    
            
            
                | 2666 |  |  |  | 
            
                                                                        
                            
            
                                    
            
            
                | 2667 |  |  |     @classmethod | 
            
                                                                        
                            
            
                                    
            
            
                | 2668 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                        
                            
            
                                    
            
            
                | 2669 |  |  |         """Get information about a particular comics.""" | 
            
                                                                        
                            
            
                                    
            
            
                | 2670 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                        
                            
            
                                    
            
            
                | 2671 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                        
                            
            
                                    
            
            
                | 2672 |  |  |         imgs = soup.find('div', class_='entry-content').find_all('img') | 
            
                                                                        
                            
            
                                    
            
            
                | 2673 |  |  |         title2 = ' '.join(i.get('title', '') for i in imgs) | 
            
                                                                        
                            
            
                                    
            
            
                | 2674 |  |  |         return { | 
            
                                                                        
                            
            
                                    
            
            
                | 2675 |  |  |             'title': title, | 
            
                                                                        
                            
            
                                    
            
            
                | 2676 |  |  |             'title2': title2, | 
            
                                                                        
                            
            
                                    
            
            
                | 2677 |  |  |             'description': desc, | 
            
                                                                        
                            
            
                                    
            
            
                | 2678 |  |  |             'img': [urljoin_wrapper(cls.url, convert_iri_to_plain_ascii_uri(i['src'])) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2679 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2680 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2681 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2682 |  |  | class CommitStripFr(GenericCommitStrip): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2683 |  |  |     """Class to retrieve Commit Strips in French.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2684 |  |  |     name = 'commit_fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2685 |  |  |     long_name = 'Commit Strip (Fr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2686 |  |  |     url = 'http://www.commitstrip.com/fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2687 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2688 |  |  |     first_url = 'http://www.commitstrip.com/fr/2012/02/22/interview/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2689 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2690 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2691 |  |  | class CommitStripEn(GenericCommitStrip): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2692 |  |  |     """Class to retrieve Commit Strips in English.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2693 |  |  |     name = 'commit_en' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2694 |  |  |     long_name = 'Commit Strip (En)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2695 |  |  |     url = 'http://www.commitstrip.com/en' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2696 |  |  |     first_url = 'http://www.commitstrip.com/en/2012/02/22/interview/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2697 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2698 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2699 |  | View Code Duplication | class GenericBoumerie(GenericNavigableComic): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2700 |  |  |     """Generic class to retrieve Boumeries comics in different languages.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2701 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2702 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2703 |  |  |     date_format = NotImplemented | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2704 |  |  |     lang = NotImplemented | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2705 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2706 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2707 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2708 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2709 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2710 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2711 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2712 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2713 |  |  |         day = string_to_date(date_str, cls.date_format, cls.lang) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2714 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2715 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2716 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2717 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2718 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2719 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2720 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2721 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2722 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2723 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2724 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2725 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2726 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2727 |  |  | class BoumerieEn(GenericBoumerie): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2728 |  |  |     """Class to retrieve Boumeries comics in English.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2729 |  |  |     name = 'boumeries_en' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2730 |  |  |     long_name = 'Boumeries (En)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2731 |  |  |     url = 'http://comics.boumerie.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2732 |  |  |     date_format = "%B %d, %Y" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2733 |  |  |     lang = 'en_GB.UTF-8' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2734 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2735 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2736 |  |  | class BoumerieFr(GenericBoumerie): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2737 |  |  |     """Class to retrieve Boumeries comics in French.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2738 |  |  |     name = 'boumeries_fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2739 |  |  |     long_name = 'Boumeries (Fr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2740 |  |  |     url = 'http://bd.boumerie.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2741 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2742 |  |  |     date_format = "%A, %d %B %Y" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2743 |  |  |     lang = "fr_FR.utf8" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2744 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2745 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2746 |  |  | class UnearthedComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2747 |  |  |     """Class to retrieve Unearthed comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2748 |  |  |     # Also on http://tapastic.com/series/UnearthedComics | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2749 |  | View Code Duplication |     # Also on http://unearthedcomics.tumblr.com | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2750 |  |  |     name = 'unearthed' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2751 |  |  |     long_name = 'Unearthed Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2752 |  |  |     url = 'http://unearthedcomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2753 |  |  |     _categories = ('UNEARTHED', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2754 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2755 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2756 |  |  |     first_url = 'http://unearthedcomics.com/comics/world-with-turn-signals/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2757 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2758 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2759 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2760 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2761 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2762 |  |  |         title_elt = soup.find('h1') or soup.find('h2') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2763 |  |  |         title = title_elt.string if title_elt else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2764 |  |  |         desc = soup.find('meta', property='og:description') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2765 |  |  |         date_str = soup.find('time', class_='published updated hidden')['datetime'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2766 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2767 |  |  |         post = soup.find('div', class_="entry content entry-content type-portfolio") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2768 |  |  |         imgs = post.find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2769 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2770 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2771 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2772 |  |  |             'url2': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2773 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2774 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2775 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2776 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2777 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2778 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2779 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2780 |  |  | class Optipess(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2781 |  |  |     """Class to retrieve Optipess comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2782 |  |  |     name = 'optipess' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2783 |  |  |     long_name = 'Optipess' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2784 |  |  |     url = 'http://www.optipess.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2785 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2786 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2787 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2788 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2789 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2790 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2791 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2792 |  |  |         author = soup.find("span", class_="post-author").find("a").string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2793 |  |  |         comic = soup.find('div', id='comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2794 |  |  |         imgs = comic.find_all('img') if comic else [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2795 |  |  |         alt = imgs[0]['title'] if imgs else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2796 |  |  |         assert all(i['alt'] == i['title'] == alt for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2797 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2798 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2799 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2800 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2801 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2802 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2803 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2804 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2805 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2806 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2807 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2808 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2809 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2810 |  |  | class PainTrainComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2811 |  |  |     """Class to retrieve Pain Train Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2812 |  |  |     name = 'paintrain' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2813 |  |  |     long_name = 'Pain Train Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2814 |  |  |     url = 'http://paintraincomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2815 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2816 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2817 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2818 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2819 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2820 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2821 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2822 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2823 |  |  |         short_url_re = re.compile('^%s/\\?p=([0-9]*)' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2824 |  |  |         num = int(short_url_re.match(short_url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2825 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2826 |  |  |         alt = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2827 |  |  |         assert all(i['alt'] == i['title'] == alt for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2828 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2829 |  |  |         day = string_to_date(date_str, "%d/%m/%Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2830 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2831 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2832 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2833 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2834 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2835 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2836 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2837 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2838 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2839 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2840 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2841 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2842 |  |  | class MoonBeard(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2843 |  |  |     """Class to retrieve MoonBeard comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2844 |  |  |     # Also on http://blog.squiresjam.es/moonbeard | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2845 |  |  |     # Also on http://www.webtoons.com/en/comedy/moon-beard/list?title_no=471 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2846 |  |  |     name = 'moonbeard' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2847 |  |  |     long_name = 'Moon Beard' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2848 |  |  |     url = 'http://moonbeard.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2849 |  |  |     get_first_comic_link = get_a_navi_navifirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2850 |  |  |     get_navi_link = get_a_navi_navinext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2851 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2852 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2853 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2854 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2855 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2856 |  |  |         short_url = soup.find('link', rel='shortlink')['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2857 |  |  |         short_url_re = re.compile('^%s/\\?p=([0-9]*)' % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2858 |  |  |         num = int(short_url_re.match(short_url).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2859 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2860 |  |  |         alt = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2861 |  |  |         assert all(i['alt'] == i['title'] == alt for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2862 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2863 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2864 |  |  |         tags = ' '.join(t['content'] for t in soup.find_all('meta', property='article:tag')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2865 |  |  |         author = soup.find('span', class_='post-author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2866 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2867 |  |  |             'short_url': short_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2868 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2869 |  | View Code Duplication |             'img': [i['src'] for i in imgs], | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2870 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2871 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2872 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2873 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2874 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2875 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2876 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2877 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2878 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2879 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2880 |  |  | class AHamADay(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2881 |  |  |     """Class to retrieve class A Ham A Day comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2882 |  |  |     name = 'ham' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2883 |  |  |     long_name = 'A Ham A Day' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2884 |  |  |     url = 'http://www.ahammaday.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2885 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2886 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2887 |  |  |     first_url = 'http://www.ahammaday.com/today/3/6/french' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2888 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2889 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2890 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2891 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2892 |  |  |         # prev is next / next is prev | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2893 |  |  |         return last_soup.find('li', class_='previous' if next_ else 'next').find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2894 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2895 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2896 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2897 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2898 |  |  |         date_str = soup.find('time', class_='published')['datetime'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2899 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2900 |  |  |         author = soup.find('span', class_='blog-author').find('a').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2901 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2902 |  |  |         imgs = soup.find_all('meta', itemprop='image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2903 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2904 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2905 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2906 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2907 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2908 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2909 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2910 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2911 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2912 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2913 |  |  | class LittleLifeLines(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2914 |  |  |     """Class to retrieve Little Life Lines comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2915 |  |  |     # Also on https://little-life-lines.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2916 |  |  |     name = 'life' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2917 |  |  |     long_name = 'Little Life Lines' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2918 |  |  |     url = 'http://www.littlelifelines.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2919 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2920 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2921 |  |  |     first_url = 'http://www.littlelifelines.com/comics/well-done' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2922 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2923 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2924 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2925 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2926 |  |  |         # prev is next / next is prev | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2927 |  |  |         li = last_soup.find('li', class_='prev' if next_ else 'next') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2928 |  |  |         return li.find('a') if li else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2929 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2930 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2931 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2932 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2933 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2934 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2935 |  |  |         date_str = soup.find('time', class_='published')['datetime'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2936 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2937 |  |  |         author = soup.find('a', rel='author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2938 |  |  |         div_content = soup.find('div', class_="body entry-content") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2939 |  |  |         imgs = div_content.find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2940 |  |  |         imgs = [i for i in imgs if i.get('src') is not None] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2941 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2942 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2943 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2944 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2945 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2946 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2947 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2948 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2949 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2950 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2951 |  |  |         } | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 2952 |  | View Code Duplication |  | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2953 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2954 |  |  | class GenericWordPressInkblot(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2955 |  |  |     """Generic class to retrieve comics using WordPress with Inkblot.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2956 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2957 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2958 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2959 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2960 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2961 |  |  |         return get_soup_at_url(cls.url).find('a', class_='webcomic-link webcomic1-link first-webcomic-link first-webcomic1-link') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2962 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2963 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2964 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2965 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2966 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2967 |  |  |         imgs = soup.find('div', class_='webcomic-image').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2968 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2969 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2970 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2971 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2972 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2973 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2974 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2975 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2976 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2977 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2978 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2979 |  |  | class EverythingsStupid(GenericWordPressInkblot): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2980 |  |  |     """Class to retrieve Everything's stupid Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2981 |  |  |     # Also on http://tapastic.com/series/EverythingsStupid | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2982 |  |  |     # Also on http://www.webtoons.com/en/challenge/everythings-stupid/list?title_no=14591 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2983 |  |  |     # Also on http://everythingsstupidcomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2984 |  |  |     name = 'stupid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2985 |  |  |     long_name = "Everything's Stupid" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2986 |  |  |     url = 'http://everythingsstupid.net' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2987 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2988 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2989 |  |  | class TheIsmComics(GenericWordPressInkblot): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2990 |  |  |     """Class to retrieve The Ism Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2991 |  |  |     # Also on https://tapastic.com/series/TheIsm (?) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2992 |  |  |     name = 'theism' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2993 |  |  |     long_name = "The Ism" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2994 |  |  |     url = 'http://www.theism-comics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2995 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2996 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2997 |  |  | class WoodenPlankStudios(GenericWordPressInkblot): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2998 |  |  |     """Class to retrieve Wooden Plank Studios comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2999 |  |  |     name = 'woodenplank' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3000 |  |  |     long_name = 'Wooden Plank Studios' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3001 |  |  |     url = 'http://woodenplankstudios.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3002 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3003 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3004 |  |  | class ElectricBunnyComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3005 |  |  |     """Class to retrieve Electric Bunny Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3006 |  |  |     # Also on http://electricbunnycomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3007 |  |  |     name = 'bunny' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3008 |  |  |     long_name = 'Electric Bunny Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3009 |  |  |     url = 'http://www.electricbunnycomics.com/View/Comic/153/Welcome+to+Hell' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3010 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3011 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3012 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3013 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3014 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3015 |  |  |         return get_soup_at_url(cls.url).find('img', alt='First').parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3016 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3017 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3018 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3019 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3020 |  |  |         img = last_soup.find('img', alt='Next' if next_ else 'Back') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3021 |  |  |         return img.parent if img else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3022 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3023 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3024 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3025 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3026 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3027 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3028 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3029 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3030 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3031 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3032 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3033 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3034 |  |  | class SheldonComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3035 |  |  |     """Class to retrieve Sheldon comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3036 |  |  |     # Also on http://www.gocomics.com/sheldon | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3037 |  |  |     name = 'sheldon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3038 |  |  |     long_name = 'Sheldon Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3039 |  |  |     url = 'http://www.sheldoncomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3040 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3041 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3042 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3043 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3044 |  |  |         return get_soup_at_url(cls.url).find("a", id="nav-first") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3045 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3046 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3047 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3048 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3049 |  |  |         for link in last_soup.find_all("a", id="nav-next" if next_ else "nav-prev"): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3050 |  |  |             if link['href'] != 'http://www.sheldoncomics.com': | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3051 |  |  |                 return link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3052 |  |  |         return None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3053 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3054 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3055 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3056 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3057 |  |  |         imgs = soup.find("div", id="comic-foot").find_all("img") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3058 |  |  |         assert all(i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3059 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3060 |  |  |         title = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3061 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3062 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3063 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3064 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3065 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3066 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3067 |  |  | class Ubertool(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3068 |  |  |     """Class to retrieve Ubertool comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3069 |  |  |     # Also on http://ubertool.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3070 |  |  |     # Also on https://tapastic.com/series/ubertool | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3071 |  |  |     name = 'ubertool' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3072 |  |  |     long_name = 'Ubertool' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3073 |  |  |     url = 'http://ubertoolcomic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3074 |  |  |     _categories = ('UBERTOOL', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3075 |  |  |     get_first_comic_link = get_a_comicnavbase_comicnavfirst | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3076 |  |  |     get_navi_link = get_a_comicnavbase_comicnavnext | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3077 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3078 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3079 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3080 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3081 |  |  |         title = soup.find('h2', class_='post-title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3082 |  |  |         date_str = soup.find('span', class_='post-date').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3083 |  |  |         day = string_to_date(date_str, "%B %d, %Y") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3084 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3085 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3086 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3087 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3088 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3089 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3090 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3091 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3092 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3093 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3094 |  |  | class EarthExplodes(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3095 |  |  |     """Class to retrieve The Earth Explodes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3096 |  |  |     name = 'earthexplodes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3097 |  |  |     long_name = 'The Earth Explodes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3098 |  |  |     url = 'http://www.earthexplodes.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3099 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3100 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3101 |  |  |     first_url = 'http://www.earthexplodes.com/comics/000/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3102 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3103 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3104 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3105 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3106 |  |  |         return last_soup.find('a', id='next' if next_ else 'prev') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3107 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3108 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3109 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3110 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3111 |  |  |         title = soup.find('title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3112 |  |  |         imgs = soup.find('div', id='image').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3113 |  |  |         alt = imgs[0].get('title', '') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3114 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3115 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3116 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3117 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3118 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3119 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3120 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3121 |  |  | class CubeDrone(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3122 |  |  |     """Class to retrieve Cube Drone comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3123 |  |  |     name = 'cubedrone' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3124 |  |  |     long_name = 'Cube Drone' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3125 |  |  |     url = 'http://cube-drone.com/comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3126 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3127 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3128 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3129 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3130 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3131 |  |  |         return get_soup_at_url(cls.url).find('span', class_='glyphicon glyphicon-backward').parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3132 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3133 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3134 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3135 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3136 |  |  |         class_ = 'glyphicon glyphicon-chevron-' + ('right' if next_ else 'left') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3137 |  |  |         return last_soup.find('span', class_=class_).parent | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3138 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3139 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3140 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3141 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3142 |  |  |         title = soup.find('meta', attrs={'name': 'twitter:title'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3143 |  |  |         url2 = soup.find('meta', attrs={'name': 'twitter:url'})['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3144 |  |  |         # date_str = soup.find('h2', class_='comic_title').find('small').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3145 |  |  |         # day = string_to_date(date_str, "%B %d, %Y, %I:%M %p") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3146 |  |  |         imgs = soup.find_all('img', class_='comic img-responsive') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3147 |  |  |         title2 = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3148 |  |  |         alt = imgs[0]['alt'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3149 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3150 |  |  |             'url2': url2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3151 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3152 |  |  |             'title2': title2, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3153 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3154 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3155 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3156 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3157 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3158 |  |  | class MakeItStoopid(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3159 |  |  |     """Class to retrieve Make It Stoopid Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3160 |  |  |     name = 'stoopid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3161 |  |  |     long_name = 'Make it stoopid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3162 |  |  |     url = 'http://makeitstoopid.com/comic.php' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3163 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3164 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3165 |  |  |     def get_nav(cls, soup): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3166 |  |  |         """Get the navigation elements from soup object.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3167 |  |  |         cnav = soup.find_all(class_='cnav') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3168 |  |  |         nav1, nav2 = cnav[:5], cnav[5:] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3169 |  |  |         assert nav1 == nav2 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3170 |  |  |         # begin, prev, archive, next_, end = nav1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3171 |  |  |         return [None if i.get('href') is None else i for i in nav1] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3172 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3173 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3174 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3175 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3176 |  |  |         return cls.get_nav(get_soup_at_url(cls.url))[0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3177 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3178 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3179 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3180 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3181 |  |  |         return cls.get_nav(last_soup)[3 if next_ else 1] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3182 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3183 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3184 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3185 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3186 |  |  |         title = link['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3187 |  |  |         imgs = soup.find_all('img', id='comicimg') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3188 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3189 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3190 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3191 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3192 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3193 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3194 |  |  | class MarketoonistComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3195 |  |  |     """Class to retrieve Marketoonist Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3196 |  |  |     name = 'marketoonist' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3197 |  |  |     long_name = 'Marketoonist' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3198 |  |  |     url = 'https://marketoonist.com/cartoons' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3199 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3200 |  |  |     get_navi_link = get_link_rel_next | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3201 |  |  |     first_url = 'https://marketoonist.com/2002/10/the-8-types-of-brand-managers-2.html' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3202 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3203 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3204 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3205 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3206 |  |  |         imgs = soup.find_all('meta', property='og:image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3207 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'][:10] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3208 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3209 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3210 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3211 |  |  |             'img': [i['content'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3212 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3213 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3214 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 3215 |  | View Code Duplication |             'title': title, | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3216 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3217 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3218 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3219 |  |  | class ConsoliaComics(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3220 |  |  |     """Class to retrieve Consolia comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3221 |  |  |     name = 'consolia' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3222 |  |  |     long_name = 'consolia' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3223 |  |  |     url = 'https://consolia-comic.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3224 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3225 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3226 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3227 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3228 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3229 |  |  |         return get_soup_at_url(cls.url).find('span', class_='first').find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3230 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3231 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3232 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3233 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3234 |  |  |         return last_soup.find('span', class_='next' if next_ else 'prev').find('a') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3235 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3236 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3237 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3238 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3239 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3240 |  |  |         date_str = soup.find('time')["datetime"] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3241 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3242 |  |  |         imgs = soup.find('div', id='comic').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3243 |  |  |         alt = imgs[0]['title'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3244 |  |  |         # article = soup.find('div', id='blag') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3245 |  |  |         # text = article.encode_contents() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3246 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3247 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3248 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3249 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3250 |  |  |             # 'text': text, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3251 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3252 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3253 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 3254 |  | View Code Duplication |         } | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3255 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3256 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3257 |  |  | class TuMourrasMoinsBete(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3258 |  |  |     """Class to retrieve Tu Mourras Moins Bete comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3259 |  |  |     name = 'mourrasmoinsbete' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3260 |  |  |     long_name = 'Tu Mourras Moins Bete' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3261 |  |  |     url = 'http://tumourrasmoinsbete.blogspot.fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3262 |  |  |     _categories = ('FRANCAIS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3263 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3264 |  |  |     first_url = 'http://tumourrasmoinsbete.blogspot.fr/2008/06/essai.html' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3265 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3266 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3267 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3268 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3269 |  |  |         return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3270 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3271 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3272 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3273 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3274 |  |  |         title = soup.find('title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3275 |  |  |         imgs = soup.find('div', itemprop='description articleBody').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3276 |  |  |         author = soup.find('span', itemprop='author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3277 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3278 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3279 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3280 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3281 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3282 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3283 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3284 |  |  | class GeekAndPoke(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3285 |  |  |     """Class to retrieve Geek And Poke comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3286 |  |  |     name = 'geek' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3287 |  |  |     long_name = 'Geek And Poke' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3288 |  |  |     url = 'http://geek-and-poke.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3289 |  |  |     get_url_from_link = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3290 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3291 |  |  |     first_url = 'http://geek-and-poke.com/geekandpoke/2006/8/27/a-new-place-for-a-not-so-old-blog.html' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3292 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3293 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3294 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3295 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3296 |  |  |         return last_soup.find('a', class_='prev-item' if next_ else 'next-item') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3297 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3298 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3299 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3300 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3301 |  |  |         title = soup.find('meta', property='og:title')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3302 |  |  |         desc = soup.find('meta', property='og:description')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3303 |  |  |         date_str = soup.find('time', class_='published')['datetime'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3304 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3305 |  |  |         author = soup.find('a', rel='author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3306 |  |  |         div_content = (soup.find('div', class_="body entry-content") or | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3307 |  |  |                        soup.find('div', class_="special-content")) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3308 |  |  |         imgs = div_content.find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3309 |  |  |         imgs = [i for i in imgs if i.get('src') is not None] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3310 |  |  |         assert all('title' not in i or i['alt'] == i['title'] for i in imgs) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3311 |  |  |         alt = imgs[0].get('alt', "") if imgs else [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3312 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3313 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3314 |  |  |             'alt': alt, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3315 |  |  |             'description': desc, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3316 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3317 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3318 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3319 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3320 |  |  |             'img': [urljoin_wrapper(cls.url, i['src']) for i in imgs], | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 3321 |  | View Code Duplication |         } | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3322 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3323 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3324 |  |  | class GloryOwlComix(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3325 |  |  |     """Class to retrieve Glory Owl comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3326 |  |  |     name = 'gloryowl' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3327 |  |  |     long_name = 'Glory Owl' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3328 |  |  |     url = 'http://gloryowlcomix.blogspot.fr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3329 |  |  |     _categories = ('NSFW', 'FRANCAIS') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3330 |  |  |     get_first_comic_link = simulate_first_link | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3331 |  |  |     first_url = 'http://gloryowlcomix.blogspot.fr/2013/02/1_7.html' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3332 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3333 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3334 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3335 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3336 |  |  |         return last_soup.find('a', id='Blog1_blog-pager-newer-link' if next_ else 'Blog1_blog-pager-older-link') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3337 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3338 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3339 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3340 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3341 |  |  |         title = soup.find('title').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3342 |  |  |         imgs = soup.find_all('link', rel='image_src') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3343 |  |  |         author = soup.find('a', rel='author').string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3344 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3345 |  |  |             'img': [i['href'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3346 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3347 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3348 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3349 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3350 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3351 |  |  | class GenericTumblrV1(GenericComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3352 |  |  |     """Generic class to retrieve comics from Tumblr using the V1 API.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3353 |  |  |     _categories = ('TUMBLR', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3354 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3355 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3356 |  |  |     def get_next_comic(cls, last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3357 |  |  |         """Generic implementation of get_next_comic for Tumblr comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3358 |  |  |         for p in cls.get_posts(last_comic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3359 |  |  |             comic = cls.get_comic_info(p) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3360 |  |  |             if comic is not None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3361 |  |  |                 yield comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3362 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3363 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3364 |  |  |     def get_url_from_post(cls, post): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3365 |  |  |         return post['url'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3366 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3367 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3368 |  |  |     def get_api_url(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3369 |  |  |         return urljoin_wrapper(cls.url, '/api/read/') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3370 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3371 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3372 |  |  |     def get_comic_info(cls, post): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3373 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3374 |  |  |         type_ = post['type'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3375 |  |  |         if type_ != 'photo': | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3376 |  |  |             return None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3377 |  |  |         tumblr_id = int(post['id']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3378 |  |  |         api_url = cls.get_api_url() + '?id=%d' % (tumblr_id) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3379 |  |  |         day = datetime.datetime.fromtimestamp(int(post['unix-timestamp'])).date() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3380 |  |  |         caption = post.find('photo-caption') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3381 |  |  |         title = caption.string if caption else "" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3382 |  |  |         tags = ' '.join(t.string for t in post.find_all('tag')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3383 |  |  |         # Photos may appear in 'photo' tags and/or straight in the post | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3384 |  |  |         photo_tags = post.find_all('photo') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3385 |  |  |         if not photo_tags: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3386 |  |  |             photo_tags = [post] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3387 |  |  |         # Images are in multiple resolutions - taking the first one | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3388 |  |  |         imgs = [photo.find('photo-url') for photo in photo_tags] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3389 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3390 |  |  |             'url': cls.get_url_from_post(post), | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3391 |  |  |             'url2': post['url-with-slug'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3392 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3393 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3394 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3395 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3396 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3397 |  |  |             'img': [i.string for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3398 |  |  |             'tumblr-id': tumblr_id, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3399 |  |  |             'api_url': api_url, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3400 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3401 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3402 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3403 |  |  |     def get_posts(cls, last_comic, nb_post_per_call=10): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3404 |  |  |         """Get posts using API. nb_post_per_call is max 50. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3405 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3406 |  |  |         Posts are retrieved from newer to older as per the tumblr v1 api | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3407 |  |  |         but are returned in chronological order.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3408 |  |  |         waiting_for_url = last_comic['url'] if last_comic else None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3409 |  |  |         posts_acc = [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3410 |  |  |         if last_comic is not None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3411 |  |  |             # Sometimes, tumblr posts are deleted. When previous post is deleted, we | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3412 |  |  |             # might end up spending a lot of time looking for something that | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3413 |  |  |             # doesn't exist. Failing early and clearly might be a better option. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3414 |  |  |             last_api_url = last_comic['api_url'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3415 |  |  |             try: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3416 |  |  |                 get_soup_at_url(last_api_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3417 |  |  |             except urllib.error.HTTPError: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3418 |  |  |                 try: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3419 |  |  |                     get_soup_at_url(cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3420 |  |  |                 except urllib.error.HTTPError: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3421 |  |  |                     print("Did not find previous post nor main url %s" % cls.url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3422 |  |  |                 else: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3423 |  |  |                     print("Did not find previous post %s : it might have been deleted" % last_api_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3424 |  |  |                 return reversed(posts_acc) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3425 |  |  |         api_url = cls.get_api_url() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3426 |  |  |         posts = get_soup_at_url(api_url).find('posts') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3427 |  |  |         start, total = int(posts['start']), int(posts['total']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3428 |  |  |         assert start == 0 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3429 |  |  |         for starting_num in range(0, total, nb_post_per_call): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3430 |  |  |             api_url2 = api_url + '?start=%d&num=%d' % (starting_num, nb_post_per_call) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3431 |  |  |             posts2 = get_soup_at_url(api_url2).find('posts') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3432 |  |  |             start2, total2 = int(posts2['start']), int(posts2['total']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3433 |  |  |             assert starting_num == start2, "%d != %d" % (starting_num, start2) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3434 |  |  |             # This may happen and should be handled in the future | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3435 |  |  |             assert total == total2, "%d != %d" % (total, total2) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3436 |  |  |             for p in posts2.find_all('post'): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3437 |  |  |                 if waiting_for_url and waiting_for_url == cls.get_url_from_post(p): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3438 |  |  |                     return reversed(posts_acc) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3439 |  |  |                 posts_acc.append(p) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3440 |  |  |         if waiting_for_url is None: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3441 |  |  |             return reversed(posts_acc) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3442 |  |  |         print("Did not find %s : there might be a problem" % waiting_for_url) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3443 |  |  |         return [] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3444 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3445 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3446 |  |  | class SaturdayMorningBreakfastCerealTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3447 |  |  |     """Class to retrieve Saturday Morning Breakfast Cereal comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3448 |  |  |     # Also on http://www.gocomics.com/saturday-morning-breakfast-cereal | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3449 |  |  |     # Also on http://www.smbc-comics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3450 |  |  |     name = 'smbc-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3451 |  |  |     long_name = 'Saturday Morning Breakfast Cereal (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3452 |  |  |     url = 'http://smbc-comics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3453 |  |  |     _categories = ('SMBC', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3454 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3455 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3456 |  |  | class IrwinCardozo(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3457 |  |  |     """Class to retrieve Irwin Cardozo Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3458 |  |  |     name = 'irwinc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3459 |  |  |     long_name = 'Irwin Cardozo' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3460 |  |  |     url = 'http://irwincardozocomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3461 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3462 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3463 |  |  | class AccordingToDevin(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3464 |  |  |     """Class to retrieve According To Devin comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3465 |  |  |     name = 'devin' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3466 |  |  |     long_name = 'According To Devin' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3467 |  |  |     url = 'http://accordingtodevin.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3468 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3469 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3470 |  |  | class ItsTheTieTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3471 |  |  |     """Class to retrieve It's the tie comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3472 |  |  |     # Also on http://itsthetie.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3473 |  |  |     # Also on https://tapastic.com/series/itsthetie | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3474 |  |  |     name = 'tie-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3475 |  |  |     long_name = "It's the tie (from Tumblr)" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3476 |  |  |     url = "http://itsthetie.tumblr.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3477 |  |  |     _categories = ('TIE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3478 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3479 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3480 |  |  | class OctopunsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3481 |  |  |     """Class to retrieve Octopuns comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3482 |  |  |     # Also on http://www.octopuns.net | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3483 |  |  |     name = 'octopuns-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3484 |  |  |     long_name = 'Octopuns (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3485 |  |  |     url = 'http://octopuns.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3486 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3487 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3488 |  |  | class PicturesInBoxesTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3489 |  |  |     """Class to retrieve Pictures In Boxes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3490 |  |  |     # Also on http://www.picturesinboxes.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3491 |  |  |     name = 'picturesinboxes-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3492 |  |  |     long_name = 'Pictures in Boxes (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3493 |  |  |     url = 'http://picturesinboxescomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3494 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3495 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3496 |  |  | class TubeyToonsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3497 |  |  |     """Class to retrieve TubeyToons comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3498 |  |  |     # Also on http://tapastic.com/series/Tubey-Toons | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3499 |  |  |     # Also on http://tubeytoons.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3500 |  |  |     name = 'tubeytoons-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3501 |  |  |     long_name = 'Tubey Toons (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3502 |  |  |     url = 'http://tubeytoons.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3503 |  |  |     _categories = ('TUNEYTOONS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3504 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3505 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3506 |  |  | class UnearthedComicsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3507 |  |  |     """Class to retrieve Unearthed comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3508 |  |  |     # Also on http://tapastic.com/series/UnearthedComics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3509 |  |  |     # Also on http://unearthedcomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3510 |  |  |     name = 'unearthed-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3511 |  |  |     long_name = 'Unearthed Comics (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3512 |  |  |     url = 'http://unearthedcomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3513 |  |  |     _categories = ('UNEARTHED', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3514 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3515 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3516 |  |  | class PieComic(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3517 |  |  |     """Class to retrieve Pie Comic comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3518 |  |  |     name = 'pie' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3519 |  |  |     long_name = 'Pie Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3520 |  |  |     url = "http://piecomic.tumblr.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3521 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3522 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3523 |  |  | class MrEthanDiamond(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3524 |  |  |     """Class to retrieve Mr Ethan Diamond comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3525 |  |  |     name = 'diamond' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3526 |  |  |     long_name = 'Mr Ethan Diamond' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3527 |  |  |     url = 'http://mrethandiamond.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3528 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3529 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3530 |  |  | class Flocci(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3531 |  |  |     """Class to retrieve floccinaucinihilipilification comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3532 |  |  |     name = 'flocci' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3533 |  |  |     long_name = 'floccinaucinihilipilification' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3534 |  |  |     url = "http://floccinaucinihilipilificationa.tumblr.com" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3535 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3536 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3537 |  |  | class UpAndOut(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3538 |  |  |     """Class to retrieve Up & Out comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3539 |  |  |     # Also on http://tapastic.com/series/UP-and-OUT | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3540 |  |  |     name = 'upandout' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3541 |  |  |     long_name = 'Up And Out (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3542 |  |  |     url = 'http://upandoutcomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3543 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3544 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3545 |  |  | class Pundemonium(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3546 |  |  |     """Class to retrieve Pundemonium comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3547 |  |  |     name = 'pundemonium' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3548 |  |  |     long_name = 'Pundemonium' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3549 |  |  |     url = 'http://monstika.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3550 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3551 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3552 |  |  | class PoorlyDrawnLinesTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3553 |  |  |     """Class to retrieve Poorly Drawn Lines comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3554 |  |  |     # Also on http://poorlydrawnlines.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3555 |  |  |     name = 'poorlydrawn-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3556 |  |  |     long_name = 'Poorly Drawn Lines (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3557 |  |  |     url = 'http://pdlcomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3558 |  |  |     _categories = ('POORLYDRAWN', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3559 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3560 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3561 |  |  | class PearShapedComics(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3562 |  |  |     """Class to retrieve Pear Shaped Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3563 |  |  |     name = 'pearshaped' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3564 |  |  |     long_name = 'Pear-Shaped Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3565 |  |  |     url = 'http://pearshapedcomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3566 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3567 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3568 |  |  | class PondScumComics(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3569 |  |  |     """Class to retrieve Pond Scum Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3570 |  |  |     name = 'pond' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3571 |  |  |     long_name = 'Pond Scum' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3572 |  |  |     url = 'http://pondscumcomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3573 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3574 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3575 |  |  | class MercworksTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3576 |  |  |     """Class to retrieve Mercworks comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3577 |  |  |     # Also on http://mercworks.net | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3578 |  |  |     name = 'mercworks-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3579 |  |  |     long_name = 'Mercworks (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3580 |  |  |     url = 'http://mercworks.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3581 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3582 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3583 |  |  | class OwlTurdTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3584 |  |  |     """Class to retrieve Owl Turd comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3585 |  |  |     # Also on http://tapastic.com/series/Owl-Turd-Comix | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3586 |  |  |     name = 'owlturd-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3587 |  |  |     long_name = 'Owl Turd (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3588 |  |  |     url = 'http://owlturd.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3589 |  |  |     _categories = ('OWLTURD', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3590 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3591 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3592 |  |  | class VectorBelly(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3593 |  |  |     """Class to retrieve Vector Belly comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3594 |  |  |     # Also on http://vectorbelly.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3595 |  |  |     name = 'vector' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3596 |  |  |     long_name = 'Vector Belly' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3597 |  |  |     url = 'http://vectorbelly.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3598 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3599 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3600 |  |  | class GoneIntoRapture(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3601 |  |  |     """Class to retrieve Gone Into Rapture comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3602 |  |  |     # Also on http://goneintorapture.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3603 |  |  |     # Also on http://tapastic.com/series/Goneintorapture | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3604 |  |  |     name = 'rapture' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3605 |  |  |     long_name = 'Gone Into Rapture' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3606 |  |  |     url = 'http://www.goneintorapture.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3607 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3608 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3609 |  |  | class TheOatmealTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3610 |  |  |     """Class to retrieve The Oatmeal comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3611 |  |  |     # Also on http://theoatmeal.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3612 |  |  |     name = 'oatmeal-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3613 |  |  |     long_name = 'The Oatmeal (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3614 |  |  |     url = 'http://oatmeal.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3615 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3616 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3617 |  |  | class HeckIfIKnowComicsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3618 |  |  |     """Class to retrieve Heck If I Know Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3619 |  |  |     # Also on http://tapastic.com/series/Regular | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3620 |  |  |     name = 'heck-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3621 |  |  |     long_name = 'Heck if I Know comics (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3622 |  |  |     url = 'http://heckifiknowcomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3623 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3624 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3625 |  |  | class MyJetPack(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3626 |  |  |     """Class to retrieve My Jet Pack comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3627 |  |  |     name = 'jetpack' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3628 |  |  |     long_name = 'My Jet Pack' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3629 |  |  |     url = 'http://myjetpack.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3630 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3631 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3632 |  |  | class CheerUpEmoKidTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3633 |  |  |     """Class to retrieve CheerUpEmoKid comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3634 |  |  |     # Also on http://www.cheerupemokid.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3635 |  |  |     # Also on http://tapastic.com/series/CUEK | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3636 |  |  |     name = 'cuek-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3637 |  |  |     long_name = 'Cheer Up Emo Kid (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3638 |  |  |     url = 'http://enzocomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3639 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3640 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3641 |  |  | class ForLackOfABetterComic(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3642 |  |  |     """Class to retrieve For Lack Of A Better Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3643 |  |  |     # Also on http://forlackofabettercomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3644 |  |  |     name = 'lack' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3645 |  |  |     long_name = 'For Lack Of A Better Comic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3646 |  |  |     url = 'http://forlackofabettercomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3647 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3648 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3649 |  |  | class ZenPencilsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3650 |  |  |     """Class to retrieve ZenPencils comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3651 |  |  |     # Also on http://zenpencils.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3652 |  |  |     # Also on http://www.gocomics.com/zen-pencils | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3653 |  |  |     name = 'zenpencils-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3654 |  |  |     long_name = 'Zen Pencils (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3655 |  |  |     url = 'http://zenpencils.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3656 |  |  |     _categories = ('ZENPENCILS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3657 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3658 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3659 |  |  | class ThreeWordPhraseTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3660 |  |  |     """Class to retrieve Three Word Phrase comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3661 |  |  |     # Also on http://threewordphrase.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3662 |  |  |     name = 'threeword-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3663 |  |  |     long_name = 'Three Word Phrase (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3664 |  |  |     url = 'http://www.threewordphrase.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3665 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3666 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3667 |  |  | class TimeTrabbleTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3668 |  |  |     """Class to retrieve Time Trabble comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3669 |  |  |     # Also on http://timetrabble.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3670 |  |  |     name = 'timetrabble-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3671 |  |  |     long_name = 'Time Trabble (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3672 |  |  |     url = 'http://timetrabble.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3673 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3674 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3675 |  |  | class SafelyEndangeredTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3676 |  |  |     """Class to retrieve Safely Endangered comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3677 |  |  |     # Also on http://www.safelyendangered.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3678 |  |  |     name = 'endangered-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3679 |  |  |     long_name = 'Safely Endangered (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3680 |  |  |     url = 'http://tumblr.safelyendangered.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3681 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3682 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3683 |  |  | class MouseBearComedyTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3684 |  |  |     """Class to retrieve Mouse Bear Comedy comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3685 |  |  |     # Also on http://www.mousebearcomedy.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3686 |  |  |     name = 'mousebear-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3687 |  |  |     long_name = 'Mouse Bear Comedy (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3688 |  |  |     url = 'http://mousebearcomedy.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3689 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3690 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3691 |  |  | class BouletCorpTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3692 |  |  |     """Class to retrieve BouletCorp comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3693 |  |  |     # Also on http://www.bouletcorp.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3694 |  |  |     name = 'boulet-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3695 |  |  |     long_name = 'Boulet Corp (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3696 |  |  |     url = 'http://bouletcorp.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3697 |  |  |     _categories = ('BOULET', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3698 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3699 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3700 |  |  | class TheAwkwardYetiTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3701 |  |  |     """Class to retrieve The Awkward Yeti comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3702 |  |  |     # Also on http://www.gocomics.com/the-awkward-yeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3703 |  |  |     # Also on http://theawkwardyeti.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3704 |  |  |     # Also on https://tapastic.com/series/TheAwkwardYeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3705 |  |  |     name = 'yeti-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3706 |  |  |     long_name = 'The Awkward Yeti (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3707 |  |  |     url = 'http://larstheyeti.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3708 |  |  |     _categories = ('YETI', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3709 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3710 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3711 |  |  | class NellucNhoj(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3712 |  |  |     """Class to retrieve NellucNhoj comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3713 |  |  |     name = 'nhoj' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3714 |  |  |     long_name = 'Nelluc Nhoj' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3715 |  |  |     url = 'http://nellucnhoj.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3716 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3717 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3718 |  |  | class DownTheUpwardSpiralTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3719 |  |  |     """Class to retrieve Down The Upward Spiral comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3720 |  |  |     # Also on http://www.downtheupwardspiral.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3721 |  |  |     name = 'spiral-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3722 |  |  |     long_name = 'Down the Upward Spiral (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3723 |  |  |     url = 'http://downtheupwardspiral.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3724 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3725 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3726 |  |  | class AsPerUsualTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3727 |  |  |     """Class to retrieve As Per Usual comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3728 |  |  |     # Also on https://tapastic.com/series/AsPerUsual | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3729 |  |  |     name = 'usual-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3730 |  |  |     long_name = 'As Per Usual (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3731 |  |  |     url = 'http://as-per-usual.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3732 |  |  |     categories = ('DAMILEE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3733 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3734 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3735 |  |  | class HotComicsForCoolPeopleTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3736 |  |  |     """Class to retrieve Hot Comics For Cool People.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3737 |  |  |     # Also on https://tapastic.com/series/Hot-Comics-For-Cool-People | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3738 |  |  |     # Also on http://hotcomics.biz (links to tumblr) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3739 |  |  |     # Also on http://hcfcp.com (links to tumblr) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3740 |  |  |     name = 'hotcomics-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3741 |  |  |     long_name = 'Hot Comics For Cool People (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3742 |  |  |     url = 'http://hotcomicsforcoolpeople.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3743 |  |  |     categories = ('DAMILEE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3744 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3745 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3746 |  |  | class OneOneOneOneComicTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3747 |  |  |     """Class to retrieve 1111 Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3748 |  |  |     # Also on http://www.1111comics.me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3749 |  |  |     # Also on https://tapastic.com/series/1111-Comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3750 |  |  |     name = '1111-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3751 |  |  |     long_name = '1111 Comics (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3752 |  |  |     url = 'http://comics1111.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3753 |  |  |     _categories = ('ONEONEONEONE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3754 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3755 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3756 |  |  | class JhallComicsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3757 |  |  |     """Class to retrieve Jhall Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3758 |  |  |     # Also on http://jhallcomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3759 |  |  |     name = 'jhall-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3760 |  |  |     long_name = 'Jhall Comics (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3761 |  |  |     url = 'http://jhallcomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3762 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3763 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3764 |  |  | class BerkeleyMewsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3765 |  |  |     """Class to retrieve Berkeley Mews comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3766 |  |  |     # Also on http://www.gocomics.com/berkeley-mews | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3767 |  |  |     # Also on http://www.berkeleymews.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3768 |  |  |     name = 'berkeley-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3769 |  |  |     long_name = 'Berkeley Mews (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3770 |  |  |     url = 'http://mews.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3771 |  |  |     _categories = ('BERKELEY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3772 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3773 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3774 |  |  | class JoanCornellaTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3775 |  |  |     """Class to retrieve Joan Cornella comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3776 |  |  |     # Also on http://joancornella.net | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3777 |  |  |     name = 'cornella-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3778 |  |  |     long_name = 'Joan Cornella (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3779 |  |  |     url = 'http://cornellajoan.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3780 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3781 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3782 |  |  | class RespawnComicTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3783 |  |  |     """Class to retrieve Respawn Comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3784 |  |  |     # Also on http://respawncomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3785 |  |  |     name = 'respawn-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3786 |  |  |     long_name = 'Respawn Comic (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3787 |  |  |     url = 'http://respawncomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3788 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3789 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3790 |  |  | class ChrisHallbeckTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3791 |  |  |     """Class to retrieve Chris Hallbeck comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3792 |  |  |     # Also on https://tapastic.com/ChrisHallbeck | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3793 |  |  |     # Also on http://maximumble.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3794 |  |  |     # Also on http://minimumble.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3795 |  |  |     # Also on http://thebookofbiff.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3796 |  |  |     name = 'hallbeck-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3797 |  |  |     long_name = 'Chris Hallback (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3798 |  |  |     url = 'http://chrishallbeck.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3799 |  |  |     _categories = ('HALLBACK', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3800 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3801 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3802 |  |  | class ComicNuggets(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3803 |  |  |     """Class to retrieve Comic Nuggets.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3804 |  |  |     name = 'nuggets' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3805 |  |  |     long_name = 'Comic Nuggets' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3806 |  |  |     url = 'http://comicnuggets.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3807 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3808 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3809 |  |  | class PigeonGazetteTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3810 |  |  |     """Class to retrieve The Pigeon Gazette comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3811 |  |  |     # Also on https://tapastic.com/series/The-Pigeon-Gazette | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3812 |  |  |     name = 'pigeon-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3813 |  |  |     long_name = 'The Pigeon Gazette (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3814 |  |  |     url = 'http://thepigeongazette.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3815 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3816 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3817 |  |  | class CancerOwl(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3818 |  |  |     """Class to retrieve Cancer Owl comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3819 |  |  |     # Also on http://cancerowl.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3820 |  |  |     name = 'cancerowl-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3821 |  |  |     long_name = 'Cancer Owl (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3822 |  |  |     url = 'http://cancerowl.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3823 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3824 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3825 |  |  | class FowlLanguageTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3826 |  |  |     """Class to retrieve Fowl Language comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3827 |  |  |     # Also on http://www.fowllanguagecomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3828 |  |  |     # Also on http://tapastic.com/series/Fowl-Language-Comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3829 |  |  |     # Also on http://www.gocomics.com/fowl-language | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3830 |  |  |     name = 'fowllanguage-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3831 |  |  |     long_name = 'Fowl Language Comics (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3832 |  |  |     url = 'http://fowllanguagecomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3833 |  |  |     _categories = ('FOWLLANGUAGE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3834 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3835 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3836 |  |  | class TheOdd1sOutTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3837 |  |  |     """Class to retrieve The Odd 1s Out comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3838 |  |  |     # Also on http://theodd1sout.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3839 |  |  |     # Also on https://tapastic.com/series/Theodd1sout | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3840 |  |  |     name = 'theodd-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3841 |  |  |     long_name = 'The Odd 1s Out (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3842 |  |  |     url = 'http://theodd1sout.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3843 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3844 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3845 |  |  | class TheUnderfoldTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3846 |  |  |     """Class to retrieve The Underfold comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3847 |  |  |     # Also on http://theunderfold.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3848 |  |  |     name = 'underfold-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3849 |  |  |     long_name = 'The Underfold (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3850 |  |  |     url = 'http://theunderfold.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3851 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3852 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3853 |  |  | class LolNeinTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3854 |  |  |     """Class to retrieve Lol Nein comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3855 |  |  |     # Also on http://lolnein.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3856 |  |  |     name = 'lolnein-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3857 |  |  |     long_name = 'Lol Nein (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3858 |  |  |     url = 'http://lolneincom.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3859 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3860 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3861 |  |  | class FatAwesomeComicsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3862 |  |  |     """Class to retrieve Fat Awesome Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3863 |  |  |     # Also on http://fatawesome.com/comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3864 |  |  |     name = 'fatawesome-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3865 |  |  |     long_name = 'Fat Awesome (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3866 |  |  |     url = 'http://fatawesomecomedy.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3867 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3868 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3869 |  |  | class TheWorldIsFlatTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3870 |  |  |     """Class to retrieve The World Is Flat Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3871 |  |  |     # Also on https://tapastic.com/series/The-World-is-Flat | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3872 |  |  |     name = 'flatworld-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3873 |  |  |     long_name = 'The World Is Flat (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3874 |  |  |     url = 'http://theworldisflatcomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3875 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3876 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3877 |  |  | class DorrisMc(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3878 |  |  |     """Class to retrieve Dorris Mc Comics""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3879 |  |  |     # Also on http://www.gocomics.com/dorris-mccomics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3880 |  |  |     name = 'dorrismc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3881 |  |  |     long_name = 'Dorris Mc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3882 |  |  |     url = 'http://dorrismccomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3883 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3884 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3885 |  |  | class LeleozTumblr(GenericEmptyComic, GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3886 |  |  |     """Class to retrieve Leleoz comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3887 |  |  |     # Also on https://tapastic.com/series/Leleoz | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3888 |  |  |     name = 'leleoz-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3889 |  |  |     long_name = 'Leleoz (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3890 |  |  |     url = 'http://leleozcomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3891 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3892 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3893 |  |  | class MoonBeardTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3894 |  |  |     """Class to retrieve MoonBeard comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3895 |  |  |     # Also on http://moonbeard.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3896 |  |  |     # Also on http://www.webtoons.com/en/comedy/moon-beard/list?title_no=471 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3897 |  |  |     name = 'moonbeard-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3898 |  |  |     long_name = 'Moon Beard (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3899 |  |  |     url = 'http://blog.squiresjam.es/moonbeard' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3900 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3901 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3902 |  |  | class AComik(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3903 |  |  |     """Class to retrieve A Comik""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3904 |  |  |     name = 'comik' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3905 |  |  |     long_name = 'A Comik' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3906 |  |  |     url = 'http://acomik.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3907 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3908 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3909 |  |  | class ClassicRandy(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3910 |  |  |     """Class to retrieve Classic Randy comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3911 |  |  |     name = 'randy' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3912 |  |  |     long_name = 'Classic Randy' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3913 |  |  |     url = 'http://classicrandy.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3914 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3915 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3916 |  |  | class DagssonTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3917 |  |  |     """Class to retrieve Dagsson comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3918 |  |  |     # Also on http://www.dagsson.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3919 |  |  |     name = 'dagsson-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3920 |  |  |     long_name = 'Dagsson Hugleikur (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3921 |  |  |     url = 'http://hugleikurdagsson.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3922 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3923 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3924 |  |  | class LinsEditionsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3925 |  |  |     """Class to retrieve L.I.N.S. Editions comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3926 |  |  |     # Also on https://linsedition.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3927 |  |  |     # Now on http://warandpeas.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3928 |  |  |     name = 'lins-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3929 |  |  |     long_name = 'L.I.N.S. Editions (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3930 |  |  |     url = 'http://linscomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3931 |  |  |     _categories = ('LINS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3932 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3933 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3934 |  |  | class WarAndPeasTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3935 |  |  |     """Class to retrieve War And Peas comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3936 |  |  |     # Was on http://linscomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3937 |  |  |     name = 'warandpeas-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3938 |  |  |     long_name = 'War And Peas (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3939 |  |  |     url = 'http://warandpeas.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3940 |  |  |     _categories = ('WARANDPEAS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3941 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3942 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3943 |  |  | class OrigamiHotDish(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3944 |  |  |     """Class to retrieve Origami Hot Dish comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3945 |  |  |     name = 'origamihotdish' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3946 |  |  |     long_name = 'Origami Hot Dish' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3947 |  |  |     url = 'http://origamihotdish.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3948 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3949 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3950 |  |  | class HitAndMissComicsTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3951 |  |  |     """Class to retrieve Hit and Miss Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3952 |  |  |     name = 'hitandmiss' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3953 |  |  |     long_name = 'Hit and Miss Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3954 |  |  |     url = 'http://hitandmisscomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3955 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3956 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3957 |  |  | class HMBlanc(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3958 |  |  |     """Class to retrieve HM Blanc comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3959 |  |  |     name = 'hmblanc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3960 |  |  |     long_name = 'HM Blanc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3961 |  |  |     url = 'http://hmblanc.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3962 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3963 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3964 |  |  | class TalesOfAbsurdityTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3965 |  |  |     """Class to retrieve Tales Of Absurdity comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3966 |  |  |     # Also on http://talesofabsurdity.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3967 |  |  |     # Also on http://tapastic.com/series/Tales-Of-Absurdity | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3968 |  |  |     name = 'absurdity-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3969 |  |  |     long_name = 'Tales of Absurdity (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3970 |  |  |     url = 'http://talesofabsurdity.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3971 |  |  |     _categories = ('ABSURDITY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3972 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3973 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3974 |  |  | class RobbieAndBobby(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3975 |  |  |     """Class to retrieve Robbie And Bobby comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3976 |  |  |     # Also on http://robbieandbobby.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3977 |  |  |     name = 'robbie-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3978 |  |  |     long_name = 'Robbie And Bobby (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3979 |  |  |     url = 'http://robbieandbobby.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3980 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3981 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3982 |  |  | class ElectricBunnyComicTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3983 |  |  |     """Class to retrieve Electric Bunny Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3984 |  |  |     # Also on http://www.electricbunnycomics.com/View/Comic/153/Welcome+to+Hell | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3985 |  |  |     name = 'bunny-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3986 |  |  |     long_name = 'Electric Bunny Comic (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3987 |  |  |     url = 'http://electricbunnycomics.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3988 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3989 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3990 |  |  | class Hoomph(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3991 |  |  |     """Class to retrieve Hoomph comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3992 |  |  |     name = 'hoomph' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3993 |  |  |     long_name = 'Hoomph' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3994 |  |  |     url = 'http://hoom.ph' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3995 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3996 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3997 |  |  | class BFGFSTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3998 |  |  |     """Class to retrieve BFGFS comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3999 |  |  |     # Also on https://tapastic.com/series/BFGFS | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4000 |  |  |     # Also on http://bfgfs.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4001 |  |  |     name = 'bfgfs-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4002 |  |  |     long_name = 'BFGFS (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4003 |  |  |     url = 'http://bfgfs.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4004 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4005 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4006 |  |  | class DoodleForFood(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4007 |  |  |     """Class to retrieve Doodle For Food comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4008 |  |  |     # Also on http://doodleforfood.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4009 |  |  |     name = 'doodle' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4010 |  |  |     long_name = 'Doodle For Food' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4011 |  |  |     url = 'http://doodleforfood.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4012 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4013 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4014 |  |  | class CassandraCalinTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4015 |  |  |     """Class to retrieve C. Cassandra comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4016 |  |  |     # Also on http://cassandracalin.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4017 |  |  |     # Also on https://tapastic.com/series/C-Cassandra-comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4018 |  |  |     name = 'cassandra-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4019 |  |  |     long_name = 'Cassandra Calin (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4020 |  |  |     url = 'http://c-cassandra.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4021 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4022 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4023 |  |  | class DougWasTaken(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4024 |  |  |     """Class to retrieve Doug Was Taken comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4025 |  |  |     name = 'doug' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4026 |  |  |     long_name = 'Doug Was Taken' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4027 |  |  |     url = 'http://dougwastaken.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4028 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4029 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4030 |  |  | class MandatoryRollerCoaster(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4031 |  |  |     """Class to retrieve Mandatory Roller Coaster comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4032 |  |  |     name = 'rollercoaster' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4033 |  |  |     long_name = 'Mandatory Roller Coaster' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4034 |  |  |     url = 'http://mandatoryrollercoaster.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4035 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4036 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4037 |  |  | class CEstPasEnRegardantSesPompes(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4038 |  |  |     """Class to retrieve C'Est Pas En Regardant Ses Pompes (...)  comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4039 |  |  |     name = 'cperspqccltt' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4040 |  |  |     long_name = 'C Est Pas En Regardant Ses Pompes (...)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4041 |  |  |     url = 'http://cperspqccltt.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4042 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4043 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4044 |  |  | class TheGrohlTroll(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4045 |  |  |     """Class to retrieve The Grohl Troll comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4046 |  |  |     name = 'grohltroll' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4047 |  |  |     long_name = 'The Grohl Troll' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4048 |  |  |     url = 'http://thegrohltroll.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4049 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4050 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4051 |  |  | class WebcomicName(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4052 |  |  |     """Class to retrieve Webcomic Name comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4053 |  |  |     name = 'webcomicname' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4054 |  |  |     long_name = 'Webcomic Name' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4055 |  |  |     url = 'http://webcomicname.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4056 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4057 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4058 |  |  | class BooksOfAdam(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4059 |  |  |     """Class to retrieve Books of Adam comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4060 |  |  |     # Also on http://www.booksofadam.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4061 |  |  |     name = 'booksofadam' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4062 |  |  |     long_name = 'Books of Adam' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4063 |  |  |     url = 'http://booksofadam.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4064 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4065 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4066 |  |  | class HarkAVagrant(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4067 |  |  |     """Class to retrieve Hark A Vagrant comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4068 |  |  |     # Also on http://www.harkavagrant.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4069 |  |  |     name = 'hark-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4070 |  |  |     long_name = 'Hark A Vagrant (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4071 |  |  |     url = 'http://beatonna.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4072 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4073 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4074 |  |  | class OurSuperAdventureTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4075 |  |  |     """Class to retrieve Our Super Adventure comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4076 |  |  |     # Also on https://tapastic.com/series/Our-Super-Adventure | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4077 |  |  |     # Also on http://www.oursuperadventure.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4078 |  |  |     # http://sarahgraley.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4079 |  |  |     name = 'superadventure-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4080 |  |  |     long_name = 'Our Super Adventure (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4081 |  |  |     url = 'http://sarahssketchbook.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4082 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4083 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4084 |  |  | class JakeLikesOnions(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4085 |  |  |     """Class to retrieve Jake Likes Onions comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4086 |  |  |     name = 'jake' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4087 |  |  |     long_name = 'Jake Likes Onions' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4088 |  |  |     url = 'http://jakelikesonions.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4089 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4090 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4091 |  |  | class InYourFaceCake(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4092 |  |  |     """Class to retrieve In Your Face Cake comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4093 |  |  |     name = 'inyourfacecake-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4094 |  |  |     long_name = 'In Your Face Cake (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4095 |  |  |     url = 'http://in-your-face-cake.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4096 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4097 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4098 |  |  | class Robospunk(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4099 |  |  |     """Class to retrieve Robospunk comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4100 |  |  |     name = 'robospunk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4101 |  |  |     long_name = 'Robospunk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4102 |  |  |     url = 'http://robospunk.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4103 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4104 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4105 |  |  | class BananaTwinky(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4106 |  |  |     """Class to retrieve Banana Twinky comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4107 |  |  |     name = 'banana' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4108 |  |  |     long_name = 'Banana Twinky' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4109 |  |  |     url = 'http://bananatwinky.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4110 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4111 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4112 |  |  | class YesterdaysPopcornTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4113 |  |  |     """Class to retrieve Yesterday's Popcorn comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4114 |  |  |     # Also on http://www.yesterdayspopcorn.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4115 |  |  |     # Also on https://tapastic.com/series/Yesterdays-Popcorn | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4116 |  |  |     name = 'popcorn-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4117 |  |  |     long_name = 'Yesterday\'s Popcorn (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4118 |  |  |     url = 'http://yesterdayspopcorn.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4119 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4120 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4121 |  |  | class TwistedDoodles(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4122 |  |  |     """Class to retrieve Twisted Doodles comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4123 |  |  |     name = 'twisted' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4124 |  |  |     long_name = 'Twisted Doodles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4125 |  |  |     url = 'http://www.twisteddoodles.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4126 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4127 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4128 |  |  | class UbertoolTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4129 |  |  |     """Class to retrieve Ubertool comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4130 |  |  |     # Also on http://ubertoolcomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4131 |  |  |     # Also on https://tapastic.com/series/ubertool | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4132 |  |  |     name = 'ubertool-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4133 |  |  |     long_name = 'Ubertool (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4134 |  |  |     url = 'http://ubertool.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4135 |  |  |     _categories = ('UBERTOOL', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4136 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4137 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4138 |  |  | class LittleLifeLinesTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4139 |  |  |     """Class to retrieve Little Life Lines comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4140 |  |  |     # Also on http://www.littlelifelines.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4141 |  |  |     name = 'life-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4142 |  |  |     long_name = 'Little Life Lines (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4143 |  |  |     url = 'https://little-life-lines.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4144 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4145 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4146 |  |  | class TheyCanTalk(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4147 |  |  |     """Class to retrieve They Can Talk comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4148 |  |  |     name = 'theycantalk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4149 |  |  |     long_name = 'They Can Talk' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4150 |  |  |     url = 'http://theycantalk.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4151 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4152 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4153 |  |  | class Will5NeverCome(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4154 |  |  |     """Class to retrieve Will 5:00 Never Come comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4155 |  |  |     name = 'will5' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4156 |  |  |     long_name = 'Will 5:00 Never Come ?' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4157 |  |  |     url = 'http://will5nevercome.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4158 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4159 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4160 |  |  | class Sephko(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4161 |  |  |     """Class to retrieve Sephko Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4162 |  |  |     # Also on http://www.sephko.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4163 |  |  |     name = 'sephko' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4164 |  |  |     long_name = 'Sephko' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4165 |  |  |     url = 'http://sephko.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4166 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4167 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4168 |  |  | class BlazersAtDawn(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4169 |  |  |     """Class to retrieve Blazers At Dawn Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4170 |  |  |     name = 'blazers' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4171 |  |  |     long_name = 'Blazers At Dawn' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4172 |  |  |     url = 'http://blazersatdawn.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4173 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4174 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4175 |  |  | class ArtByMoga(GenericEmptyComic, GenericTumblrV1):  # Deactivated because it downloads too many things | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4176 |  |  |     """Class to retrieve Art By Moga Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4177 |  |  |     name = 'moga' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4178 |  |  |     long_name = 'Art By Moga' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4179 |  |  |     url = 'http://artbymoga.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4180 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4181 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4182 |  |  | class VerbalVomitTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4183 |  |  |     """Class to retrieve Verbal Vomit comics.""" | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 4184 |  | View Code Duplication |     # Also on http://www.verbal-vomit.com | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4185 |  |  |     name = 'vomit-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4186 |  |  |     long_name = 'Verbal Vomit (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4187 |  |  |     url = 'http://verbalvomits.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4188 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4189 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4190 |  |  | class LibraryComic(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4191 |  |  |     """Class to retrieve LibraryComic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4192 |  |  |     # Also on http://librarycomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4193 |  |  |     name = 'library-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4194 |  |  |     long_name = 'LibraryComic (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4195 |  |  |     url = 'http://librarycomic.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4196 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4197 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4198 |  |  | class TizzyStitchBirdTumblr(GenericTumblrV1): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4199 |  |  |     """Class to retrieve Tizzy Stitch Bird comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4200 |  |  |     # Also on http://tizzystitchbird.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4201 |  |  |     # Also on https://tapastic.com/series/TizzyStitchbird | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4202 |  |  |     # Also on http://www.webtoons.com/en/challenge/tizzy-stitchbird/list?title_no=50082 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4203 |  |  |     name = 'tizzy-tumblr' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4204 |  |  |     long_name = 'Tizzy Stitch Bird (from Tumblr)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4205 |  |  |     url = 'http://tizzystitchbird.tumblr.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4206 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4207 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4208 |  |  | class HorovitzComics(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4209 |  |  |     """Generic class to handle the logic common to the different comics from Horovitz.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4210 |  |  |     url = 'http://www.horovitzcomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4211 |  |  |     _categories = ('HOROVITZ', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4212 |  |  |     img_re = re.compile('.*comics/([0-9]*)/([0-9]*)/([0-9]*)/.*$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4213 |  |  |     link_re = NotImplemented | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4214 |  |  |     get_url_from_archive_element = join_cls_url_to_href | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4215 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4216 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4217 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4218 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4219 |  |  |         href = link['href'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4220 |  |  |         num = int(cls.link_re.match(href).groups()[0]) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4221 |  |  |         title = link.string | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4222 |  |  |         imgs = soup.find_all('img', id='comic') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4223 |  |  |         assert len(imgs) == 1 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4224 |  |  |         year, month, day = [int(s) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4225 |  |  |                             for s in cls.img_re.match(imgs[0]['src']).groups()] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4226 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4227 |  |  |             'title': title, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4228 |  |  |             'day': day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4229 |  |  |             'month': month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4230 |  |  |             'year': year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4231 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4232 |  |  |             'num': num, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4233 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4234 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4235 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4236 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4237 |  |  |         archive_url = 'http://www.horovitzcomics.com/comics/archive/' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4238 |  |  |         return reversed(get_soup_at_url(archive_url).find_all('a', href=cls.link_re)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4239 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4240 |  |  |  | 
            
                                                                                                            
                            
            
                                                                    
                                                                                                        
            
            
                | 4241 |  | View Code Duplication | class HorovitzNew(HorovitzComics): | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4242 |  |  |     """Class to retrieve Horovitz new comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4243 |  |  |     name = 'horovitznew' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4244 |  |  |     long_name = 'Horovitz New' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4245 |  |  |     link_re = re.compile('^/comics/new/([0-9]+)$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4246 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4247 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4248 |  |  | class HorovitzClassic(HorovitzComics): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4249 |  |  |     """Class to retrieve Horovitz classic comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4250 |  |  |     name = 'horovitzclassic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4251 |  |  |     long_name = 'Horovitz Classic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4252 |  |  |     link_re = re.compile('^/comics/classic/([0-9]+)$') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4253 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4254 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4255 |  |  | class GenericGoComic(GenericNavigableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4256 |  |  |     """Generic class to handle the logic common to comics from gocomics.com.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4257 |  |  |     _categories = ('GOCOMIC', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4258 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4259 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4260 |  |  |     def get_first_comic_link(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4261 |  |  |         """Get link to first comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4262 |  |  |         return get_soup_at_url(cls.url).find('a', class_='fa btn btn-outline-default btn-circle fa-backward sm ') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4263 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4264 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4265 |  |  |     def get_navi_link(cls, last_soup, next_): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4266 |  |  |         """Get link to next or previous comic.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4267 |  |  |         PREV = 'fa btn btn-outline-default btn-circle fa-caret-left sm ' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4268 |  |  |         NEXT = 'fa btn btn-outline-default btn-circle fa-caret-right sm ' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4269 |  |  |         return last_soup.find('a', class_=NEXT if next_ else PREV) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4270 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4271 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4272 |  |  |     def get_url_from_link(cls, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4273 |  |  |         gocomics = 'http://www.gocomics.com' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4274 |  |  |         return urljoin_wrapper(gocomics, link['href']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4275 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4276 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4277 |  |  |     def get_comic_info(cls, soup, link): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4278 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4279 |  |  |         date_str = soup.find('meta', property='article:published_time')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4280 |  |  |         day = string_to_date(date_str, "%Y-%m-%d") | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4281 |  |  |         imgs = soup.find('picture', class_='img-fluid item-comic-image').find_all('img') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4282 |  |  |         author = soup.find('meta', property='article:author')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4283 |  |  |         tags = soup.find('meta', property='article:tag')['content'] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4284 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4285 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4286 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4287 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4288 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4289 |  |  |             'author': author, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4290 |  |  |             'tags': tags, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4291 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4292 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4293 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4294 |  |  | class PearlsBeforeSwine(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4295 |  |  |     """Class to retrieve Pearls Before Swine comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4296 |  |  |     name = 'pearls' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4297 |  |  |     long_name = 'Pearls Before Swine' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4298 |  |  |     url = 'http://www.gocomics.com/pearlsbeforeswine' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4299 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4300 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4301 |  |  | class Peanuts(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4302 |  |  |     """Class to retrieve Peanuts comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4303 |  |  |     name = 'peanuts' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4304 |  |  |     long_name = 'Peanuts' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4305 |  |  |     url = 'http://www.gocomics.com/peanuts' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4306 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4307 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4308 |  |  | class MattWuerker(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4309 |  |  |     """Class to retrieve Matt Wuerker comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4310 |  |  |     name = 'wuerker' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4311 |  |  |     long_name = 'Matt Wuerker' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4312 |  |  |     url = 'http://www.gocomics.com/mattwuerker' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4313 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4314 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4315 |  |  | class TomToles(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4316 |  |  |     """Class to retrieve Tom Toles comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4317 |  |  |     name = 'toles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4318 |  |  |     long_name = 'Tom Toles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4319 |  |  |     url = 'http://www.gocomics.com/tomtoles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4320 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4321 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4322 |  |  | class BreakOfDay(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4323 |  |  |     """Class to retrieve Break Of Day comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4324 |  |  |     name = 'breakofday' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4325 |  |  |     long_name = 'Break Of Day' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4326 |  |  |     url = 'http://www.gocomics.com/break-of-day' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4327 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4328 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4329 |  |  | class Brevity(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4330 |  |  |     """Class to retrieve Brevity comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4331 |  |  |     name = 'brevity' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4332 |  |  |     long_name = 'Brevity' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4333 |  |  |     url = 'http://www.gocomics.com/brevitypanel' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4334 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4335 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4336 |  |  | class MichaelRamirez(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4337 |  |  |     """Class to retrieve Michael Ramirez comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4338 |  |  |     name = 'ramirez' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4339 |  |  |     long_name = 'Michael Ramirez' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4340 |  |  |     url = 'http://www.gocomics.com/michaelramirez' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4341 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4342 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4343 |  |  | class MikeLuckovich(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4344 |  |  |     """Class to retrieve Mike Luckovich comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4345 |  |  |     name = 'luckovich' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4346 |  |  |     long_name = 'Mike Luckovich' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4347 |  |  |     url = 'http://www.gocomics.com/mikeluckovich' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4348 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4349 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4350 |  |  | class JimBenton(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4351 |  |  |     """Class to retrieve Jim Benton comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4352 |  |  |     # Also on http://jimbenton.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4353 |  |  |     name = 'benton' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4354 |  |  |     long_name = 'Jim Benton' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4355 |  |  |     url = 'http://www.gocomics.com/jim-benton-cartoons' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4356 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4357 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4358 |  |  | class TheArgyleSweater(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4359 |  |  |     """Class to retrieve the Argyle Sweater comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4360 |  |  |     name = 'argyle' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4361 |  |  |     long_name = 'Argyle Sweater' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4362 |  |  |     url = 'http://www.gocomics.com/theargylesweater' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4363 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4364 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4365 |  |  | class SunnyStreet(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4366 |  |  |     """Class to retrieve Sunny Street comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4367 |  |  |     # Also on http://www.sunnystreetcomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4368 |  |  |     name = 'sunny' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4369 |  |  |     long_name = 'Sunny Street' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4370 |  |  |     url = 'http://www.gocomics.com/sunny-street' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4371 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4372 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4373 |  |  | class OffTheMark(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4374 |  |  |     """Class to retrieve Off The Mark comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4375 |  |  |     # Also on https://www.offthemark.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4376 |  |  |     name = 'offthemark' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4377 |  |  |     long_name = 'Off The Mark' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4378 |  |  |     url = 'http://www.gocomics.com/offthemark' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4379 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4380 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4381 |  |  | class WuMo(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4382 |  |  |     """Class to retrieve WuMo comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4383 |  |  |     # Also on http://wumo.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4384 |  |  |     name = 'wumo' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4385 |  |  |     long_name = 'WuMo' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4386 |  |  |     url = 'http://www.gocomics.com/wumo' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4387 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4388 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4389 |  |  | class LunarBaboon(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4390 |  |  |     """Class to retrieve Lunar Baboon comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4391 |  |  |     # Also on http://www.lunarbaboon.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4392 |  |  |     # Also on https://tapastic.com/series/Lunarbaboon | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4393 |  |  |     name = 'lunarbaboon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4394 |  |  |     long_name = 'Lunar Baboon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4395 |  |  |     url = 'http://www.gocomics.com/lunarbaboon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4396 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4397 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4398 |  |  | class SandersenGocomic(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4399 |  |  |     """Class to retrieve Sarah Andersen comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4400 |  |  |     # Also on http://sarahcandersen.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4401 |  |  |     # Also on http://tapastic.com/series/Doodle-Time | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4402 |  |  |     name = 'sandersen-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4403 |  |  |     long_name = 'Sarah Andersen (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4404 |  |  |     url = 'http://www.gocomics.com/sarahs-scribbles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4405 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4406 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4407 |  |  | class SaturdayMorningBreakfastCerealGoComic(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4408 |  |  |     """Class to retrieve Saturday Morning Breakfast Cereal comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4409 |  |  |     # Also on http://smbc-comics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4410 |  |  |     # Also on http://www.smbc-comics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4411 |  |  |     name = 'smbc-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4412 |  |  |     long_name = 'Saturday Morning Breakfast Cereal (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4413 |  |  |     url = 'http://www.gocomics.com/saturday-morning-breakfast-cereal' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4414 |  |  |     _categories = ('SMBC', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4415 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4416 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4417 |  |  | class CalvinAndHobbesGoComic(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4418 |  |  |     """Class to retrieve Calvin and Hobbes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4419 |  |  |     # From gocomics, not http://marcel-oehler.marcellosendos.ch/comics/ch/ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4420 |  |  |     name = 'calvin-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4421 |  |  |     long_name = 'Calvin and Hobbes (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4422 |  |  |     url = 'http://www.gocomics.com/calvinandhobbes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4423 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4424 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4425 |  |  | class RallGoComic(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4426 |  |  |     """Class to retrieve Ted Rall comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4427 |  |  |     # Also on http://rall.com/comic | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4428 |  |  |     name = 'rall-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4429 |  |  |     long_name = "Ted Rall (from GoComics)" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4430 |  |  |     url = "http://www.gocomics.com/ted-rall" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4431 |  |  |     _categories = ('RALL', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4432 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4433 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4434 |  |  | class TheAwkwardYetiGoComic(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4435 |  |  |     """Class to retrieve The Awkward Yeti comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4436 |  |  |     # Also on http://larstheyeti.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4437 |  |  |     # Also on http://theawkwardyeti.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4438 |  |  |     # Also on https://tapastic.com/series/TheAwkwardYeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4439 |  |  |     name = 'yeti-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4440 |  |  |     long_name = 'The Awkward Yeti (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4441 |  |  |     url = 'http://www.gocomics.com/the-awkward-yeti' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4442 |  |  |     _categories = ('YETI', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4443 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4444 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4445 |  |  | class BerkeleyMewsGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4446 |  |  |     """Class to retrieve Berkeley Mews comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4447 |  |  |     # Also on http://mews.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4448 |  |  |     # Also on http://www.berkeleymews.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4449 |  |  |     name = 'berkeley-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4450 |  |  |     long_name = 'Berkeley Mews (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4451 |  |  |     url = 'http://www.gocomics.com/berkeley-mews' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4452 |  |  |     _categories = ('BERKELEY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4453 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4454 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4455 |  |  | class SheldonGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4456 |  |  |     """Class to retrieve Sheldon comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4457 |  |  |     # Also on http://www.sheldoncomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4458 |  |  |     name = 'sheldon-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4459 |  |  |     long_name = 'Sheldon Comics (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4460 |  |  |     url = 'http://www.gocomics.com/sheldon' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4461 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4462 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4463 |  |  | class FowlLanguageGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4464 |  |  |     """Class to retrieve Fowl Language comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4465 |  |  |     # Also on http://www.fowllanguagecomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4466 |  |  |     # Also on http://tapastic.com/series/Fowl-Language-Comics | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4467 |  |  |     # Also on http://fowllanguagecomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4468 |  |  |     name = 'fowllanguage-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4469 |  |  |     long_name = 'Fowl Language Comics (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4470 |  |  |     url = 'http://www.gocomics.com/fowl-language' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4471 |  |  |     _categories = ('FOWLLANGUAGE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4472 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4473 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4474 |  |  | class NickAnderson(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4475 |  |  |     """Class to retrieve Nick Anderson comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4476 |  |  |     name = 'nickanderson' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4477 |  |  |     long_name = 'Nick Anderson' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4478 |  |  |     url = 'http://www.gocomics.com/nickanderson' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4479 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4480 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4481 |  |  | class GarfieldGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4482 |  |  |     """Class to retrieve Garfield comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4483 |  |  |     # Also on http://garfield.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4484 |  |  |     name = 'garfield-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4485 |  |  |     long_name = 'Garfield (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4486 |  |  |     url = 'http://www.gocomics.com/garfield' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4487 |  |  |     _categories = ('GARFIELD', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4488 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4489 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4490 |  |  | class DorrisMcGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4491 |  |  |     """Class to retrieve Dorris Mc Comics""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4492 |  |  |     # Also on http://dorrismccomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4493 |  |  |     name = 'dorrismc-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4494 |  |  |     long_name = 'Dorris Mc (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4495 |  |  |     url = 'http://www.gocomics.com/dorris-mccomics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4496 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4497 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4498 |  |  | class FoxTrot(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4499 |  |  |     """Class to retrieve FoxTrot comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4500 |  |  |     name = 'foxtrot' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4501 |  |  |     long_name = 'FoxTrot' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4502 |  |  |     url = 'http://www.gocomics.com/foxtrot' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4503 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4504 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4505 |  |  | class FoxTrotClassics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4506 |  |  |     """Class to retrieve FoxTrot Classics comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4507 |  |  |     name = 'foxtrot-classics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4508 |  |  |     long_name = 'FoxTrot Classics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4509 |  |  |     url = 'http://www.gocomics.com/foxtrotclassics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4510 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4511 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4512 |  |  | class MisterAndMeGoComics(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4513 |  |  |     """Class to retrieve Mister & Me Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4514 |  |  |     # Also on http://www.mister-and-me.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4515 |  |  |     # Also on https://tapastic.com/series/Mister-and-Me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4516 |  |  |     name = 'mister-goc' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4517 |  |  |     long_name = 'Mister & Me (from GoComics)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4518 |  |  |     url = 'http://www.gocomics.com/mister-and-me' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4519 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4520 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4521 |  |  | class NonSequitur(GenericGoComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4522 |  |  |     """Class to retrieve Non Sequitur (Wiley Miller) comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4523 |  |  |     name = 'nonsequitur' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4524 |  |  |     long_name = 'Non Sequitur' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4525 |  |  |     url = 'http://www.gocomics.com/nonsequitur' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4526 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4527 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4528 |  |  | class GenericTapasticComic(GenericListableComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4529 |  |  |     """Generic class to handle the logic common to comics from tapastic.com.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4530 |  |  |     _categories = ('TAPASTIC', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4531 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4532 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4533 |  |  |     def get_comic_info(cls, soup, archive_elt): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4534 |  |  |         """Get information about a particular comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4535 |  |  |         timestamp = int(archive_elt['publishDate']) / 1000.0 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4536 |  |  |         day = datetime.datetime.fromtimestamp(timestamp).date() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4537 |  |  |         imgs = soup.find_all('img', class_='art-image') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4538 |  |  |         if not imgs: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4539 |  |  |             print("Comic %s is being uploaded, retry later" % cls.get_url_from_archive_element(archive_elt)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4540 |  |  |             return None | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4541 |  |  |         assert len(imgs) > 0 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4542 |  |  |         return { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4543 |  |  |             'day': day.day, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4544 |  |  |             'year': day.year, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4545 |  |  |             'month': day.month, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4546 |  |  |             'img': [i['src'] for i in imgs], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4547 |  |  |             'title': archive_elt['title'], | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4548 |  |  |         } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4549 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4550 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4551 |  |  |     def get_url_from_archive_element(cls, archive_elt): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4552 |  |  |         return 'http://tapastic.com/episode/' + str(archive_elt['id']) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4553 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4554 |  |  |     @classmethod | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4555 |  |  |     def get_archive_elements(cls): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4556 |  |  |         pref, suff = 'episodeList : ', ',' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4557 |  |  |         # Information is stored in the javascript part | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4558 |  |  |         # I don't know the clean way to get it so this is the ugly way. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4559 |  |  |         string = [s[len(pref):-len(suff)] for s in (s.decode('utf-8').strip() for s in urlopen_wrapper(cls.url).readlines()) if s.startswith(pref) and s.endswith(suff)][0] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4560 |  |  |         return json.loads(string) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4561 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4562 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4563 |  |  | class VegetablesForDessert(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4564 |  |  |     """Class to retrieve Vegetables For Dessert comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4565 |  |  |     # Also on http://vegetablesfordessert.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4566 |  |  |     name = 'vegetables' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4567 |  |  |     long_name = 'Vegetables For Dessert' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4568 |  |  |     url = 'http://tapastic.com/series/vegetablesfordessert' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4569 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4570 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4571 |  |  | class FowlLanguageTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4572 |  |  |     """Class to retrieve Fowl Language comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4573 |  |  |     # Also on http://www.fowllanguagecomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4574 |  |  |     # Also on http://fowllanguagecomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4575 |  |  |     # Also on http://www.gocomics.com/fowl-language | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4576 |  |  |     name = 'fowllanguage-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4577 |  |  |     long_name = 'Fowl Language Comics (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4578 |  |  |     url = 'http://tapastic.com/series/Fowl-Language-Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4579 |  |  |     _categories = ('FOWLLANGUAGE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4580 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4581 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4582 |  |  | class OscillatingProfundities(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4583 |  |  |     """Class to retrieve Oscillating Profundities comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4584 |  |  |     name = 'oscillating' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4585 |  |  |     long_name = 'Oscillating Profundities' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4586 |  |  |     url = 'http://tapastic.com/series/oscillatingprofundities' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4587 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4588 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4589 |  |  | class ZnoflatsComics(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4590 |  |  |     """Class to retrieve Znoflats comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4591 |  |  |     name = 'znoflats' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4592 |  |  |     long_name = 'Znoflats Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4593 |  |  |     url = 'http://tapastic.com/series/Znoflats-Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4594 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4595 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4596 |  |  | class SandersenTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4597 |  |  |     """Class to retrieve Sarah Andersen comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4598 |  |  |     # Also on http://sarahcandersen.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4599 |  |  |     # Also on http://www.gocomics.com/sarahs-scribbles | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4600 |  |  |     name = 'sandersen-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4601 |  |  |     long_name = 'Sarah Andersen (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4602 |  |  |     url = 'http://tapastic.com/series/Doodle-Time' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4603 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4604 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4605 |  |  | class TubeyToonsTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4606 |  |  |     """Class to retrieve TubeyToons comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4607 |  |  |     # Also on http://tubeytoons.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4608 |  |  |     # Also on http://tubeytoons.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4609 |  |  |     name = 'tubeytoons-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4610 |  |  |     long_name = 'Tubey Toons (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4611 |  |  |     url = 'http://tapastic.com/series/Tubey-Toons' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4612 |  |  |     _categories = ('TUNEYTOONS', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4613 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4614 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4615 |  |  | class AnythingComicTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4616 |  |  |     """Class to retrieve Anything Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4617 |  |  |     # Also on http://www.anythingcomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4618 |  |  |     name = 'anythingcomic-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4619 |  |  |     long_name = 'Anything Comic (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4620 |  |  |     url = 'http://tapastic.com/series/anything' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4621 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4622 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4623 |  |  | class UnearthedComicsTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4624 |  |  |     """Class to retrieve Unearthed comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4625 |  |  |     # Also on http://unearthedcomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4626 |  |  |     # Also on http://unearthedcomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4627 |  |  |     name = 'unearthed-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4628 |  |  |     long_name = 'Unearthed Comics (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4629 |  |  |     url = 'http://tapastic.com/series/UnearthedComics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4630 |  |  |     _categories = ('UNEARTHED', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4631 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4632 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4633 |  |  | class EverythingsStupidTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4634 |  |  |     """Class to retrieve Everything's stupid Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4635 |  |  |     # Also on http://www.webtoons.com/en/challenge/everythings-stupid/list?title_no=14591 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4636 |  |  |     # Also on http://everythingsstupid.net | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4637 |  |  |     name = 'stupid-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4638 |  |  |     long_name = "Everything's Stupid (from Tapastic)" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4639 |  |  |     url = 'http://tapastic.com/series/EverythingsStupid' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4640 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4641 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4642 |  |  | class JustSayEhTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4643 |  |  |     """Class to retrieve Just Say Eh comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4644 |  |  |     # Also on http://www.justsayeh.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4645 |  |  |     name = 'justsayeh-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4646 |  |  |     long_name = 'Just Say Eh (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4647 |  |  |     url = 'http://tapastic.com/series/Just-Say-Eh' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4648 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4649 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4650 |  |  | class ThorsThundershackTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4651 |  |  |     """Class to retrieve Thor's Thundershack comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4652 |  |  |     # Also on http://www.thorsthundershack.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4653 |  |  |     name = 'thor-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4654 |  |  |     long_name = 'Thor\'s Thundershack (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4655 |  |  |     url = 'http://tapastic.com/series/Thors-Thundershac' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4656 |  |  |     _categories = ('THOR', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4657 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4658 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4659 |  |  | class OwlTurdTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4660 |  |  |     """Class to retrieve Owl Turd comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4661 |  |  |     # Also on http://owlturd.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4662 |  |  |     name = 'owlturd-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4663 |  |  |     long_name = 'Owl Turd (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4664 |  |  |     url = 'http://tapastic.com/series/Owl-Turd-Comix' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4665 |  |  |     _categories = ('OWLTURD', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4666 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4667 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4668 |  |  | class GoneIntoRaptureTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4669 |  |  |     """Class to retrieve Gone Into Rapture comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4670 |  |  |     # Also on http://goneintorapture.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4671 |  |  |     # Also on http://www.goneintorapture.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4672 |  |  |     name = 'rapture-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4673 |  |  |     long_name = 'Gone Into Rapture (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4674 |  |  |     url = 'http://tapastic.com/series/Goneintorapture' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4675 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4676 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4677 |  |  | class HeckIfIKnowComicsTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4678 |  |  |     """Class to retrieve Heck If I Know Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4679 |  |  |     # Also on http://heckifiknowcomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4680 |  |  |     name = 'heck-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4681 |  |  |     long_name = 'Heck if I Know comics (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4682 |  |  |     url = 'http://tapastic.com/series/Regular' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4683 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4684 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4685 |  |  | class CheerUpEmoKidTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4686 |  |  |     """Class to retrieve CheerUpEmoKid comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4687 |  |  |     # Also on http://www.cheerupemokid.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4688 |  |  |     # Also on http://enzocomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4689 |  |  |     name = 'cuek-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4690 |  |  |     long_name = 'Cheer Up Emo Kid (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4691 |  |  |     url = 'http://tapastic.com/series/CUEK' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4692 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4693 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4694 |  |  | class BigFootJusticeTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4695 |  |  |     """Class to retrieve Big Foot Justice comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4696 |  |  |     # Also on http://bigfootjustice.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4697 |  |  |     name = 'bigfoot-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4698 |  |  |     long_name = 'Big Foot Justice (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4699 |  |  |     url = 'http://tapastic.com/series/bigfoot-justice' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4700 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4701 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4702 |  |  | class UpAndOutTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4703 |  |  |     """Class to retrieve Up & Out comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4704 |  |  |     # Also on http://upandoutcomic.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4705 |  |  |     name = 'upandout-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4706 |  |  |     long_name = 'Up And Out (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4707 |  |  |     url = 'http://tapastic.com/series/UP-and-OUT' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4708 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4709 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4710 |  |  | class ToonHoleTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4711 |  |  |     """Class to retrieve Toon Holes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4712 |  |  |     # Also on http://www.toonhole.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4713 |  |  |     name = 'toonhole-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4714 |  |  |     long_name = 'Toon Hole (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4715 |  |  |     url = 'http://tapastic.com/series/TOONHOLE' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4716 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4717 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4718 |  |  | class AngryAtNothingTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4719 |  |  |     """Class to retrieve Angry at Nothing comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4720 |  |  |     # Also on http://www.angryatnothing.net | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4721 |  |  |     name = 'angry-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4722 |  |  |     long_name = 'Angry At Nothing (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4723 |  |  |     url = 'http://tapastic.com/series/Comics-yeah-definitely-comics-' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4724 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4725 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4726 |  |  | class LeleozTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4727 |  |  |     """Class to retrieve Leleoz comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4728 |  |  |     # Also on http://leleozcomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4729 |  |  |     name = 'leleoz-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4730 |  |  |     long_name = 'Leleoz (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4731 |  |  |     url = 'https://tapastic.com/series/Leleoz' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4732 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4733 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4734 |  |  | class TheAwkwardYetiTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4735 |  |  |     """Class to retrieve The Awkward Yeti comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4736 |  |  |     # Also on http://www.gocomics.com/the-awkward-yeti | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4737 |  |  |     # Also on http://theawkwardyeti.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4738 |  |  |     # Also on http://larstheyeti.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4739 |  |  |     name = 'yeti-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4740 |  |  |     long_name = 'The Awkward Yeti (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4741 |  |  |     url = 'https://tapastic.com/series/TheAwkwardYeti' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4742 |  |  |     _categories = ('YETI', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4743 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4744 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4745 |  |  | class AsPerUsualTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4746 |  |  |     """Class to retrieve As Per Usual comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4747 |  |  |     # Also on http://as-per-usual.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4748 |  |  |     name = 'usual-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4749 |  |  |     long_name = 'As Per Usual (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4750 |  |  |     url = 'https://tapastic.com/series/AsPerUsual' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4751 |  |  |     categories = ('DAMILEE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4752 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4753 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4754 |  |  | class HotComicsForCoolPeopleTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4755 |  |  |     """Class to retrieve Hot Comics For Cool People.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4756 |  |  |     # Also on http://hotcomicsforcoolpeople.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4757 |  |  |     # Also on http://hotcomics.biz (links to tumblr) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4758 |  |  |     # Also on http://hcfcp.com (links to tumblr) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4759 |  |  |     name = 'hotcomics-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4760 |  |  |     long_name = 'Hot Comics For Cool People (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4761 |  |  |     url = 'https://tapastic.com/series/Hot-Comics-For-Cool-People' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4762 |  |  |     categories = ('DAMILEE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4763 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4764 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4765 |  |  | class OneOneOneOneComicTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4766 |  |  |     """Class to retrieve 1111 Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4767 |  |  |     # Also on http://www.1111comics.me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4768 |  |  |     # Also on http://comics1111.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4769 |  |  |     name = '1111-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4770 |  |  |     long_name = '1111 Comics (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4771 |  |  |     url = 'https://tapastic.com/series/1111-Comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4772 |  |  |     _categories = ('ONEONEONEONE', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4773 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4774 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4775 |  |  | class TumbleDryTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4776 |  |  |     """Class to retrieve Tumble Dry comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4777 |  |  |     # Also on http://tumbledrycomics.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4778 |  |  |     name = 'tumbledry-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4779 |  |  |     long_name = 'Tumblr Dry (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4780 |  |  |     url = 'https://tapastic.com/series/TumbleDryComics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4781 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4782 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4783 |  |  | class DeadlyPanelTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4784 |  |  |     """Class to retrieve Deadly Panel comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4785 |  |  |     # Also on http://www.deadlypanel.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4786 |  |  |     name = 'deadly-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4787 |  |  |     long_name = 'Deadly Panel (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4788 |  |  |     url = 'https://tapastic.com/series/deadlypanel' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4789 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4790 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4791 |  |  | class ChrisHallbeckMaxiTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4792 |  |  |     """Class to retrieve Chris Hallbeck comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4793 |  |  |     # Also on http://chrishallbeck.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4794 |  |  |     # Also on http://maximumble.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4795 |  |  |     name = 'hallbeckmaxi-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4796 |  |  |     long_name = 'Chris Hallback - Maximumble (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4797 |  |  |     url = 'https://tapastic.com/series/Maximumble' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4798 |  |  |     _categories = ('HALLBACK', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4799 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4800 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4801 |  |  | class ChrisHallbeckMiniTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4802 |  |  |     """Class to retrieve Chris Hallbeck comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4803 |  |  |     # Also on http://chrishallbeck.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4804 |  |  |     # Also on http://minimumble.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4805 |  |  |     name = 'hallbeckmini-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4806 |  |  |     long_name = 'Chris Hallback - Minimumble (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4807 |  |  |     url = 'https://tapastic.com/series/Minimumble' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4808 |  |  |     _categories = ('HALLBACK', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4809 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4810 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4811 |  |  | class ChrisHallbeckBiffTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4812 |  |  |     """Class to retrieve Chris Hallbeck comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4813 |  |  |     # Also on http://chrishallbeck.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4814 |  |  |     # Also on http://thebookofbiff.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4815 |  |  |     name = 'hallbeckbiff-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4816 |  |  |     long_name = 'Chris Hallback - The Book of Biff (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4817 |  |  |     url = 'https://tapastic.com/series/Biff' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4818 |  |  |     _categories = ('HALLBACK', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4819 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4820 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4821 |  |  | class RandoWisTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4822 |  |  |     """Class to retrieve RandoWis comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4823 |  |  |     # Also on https://randowis.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4824 |  |  |     name = 'randowis-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4825 |  |  |     long_name = 'RandoWis (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4826 |  |  |     url = 'https://tapastic.com/series/RandoWis' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4827 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4828 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4829 |  |  | class PigeonGazetteTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4830 |  |  |     """Class to retrieve The Pigeon Gazette comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4831 |  |  |     # Also on http://thepigeongazette.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4832 |  |  |     name = 'pigeon-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4833 |  |  |     long_name = 'The Pigeon Gazette (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4834 |  |  |     url = 'https://tapastic.com/series/The-Pigeon-Gazette' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4835 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4836 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4837 |  |  | class TheOdd1sOutTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4838 |  |  |     """Class to retrieve The Odd 1s Out comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4839 |  |  |     # Also on http://theodd1sout.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4840 |  |  |     # Also on http://theodd1sout.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4841 |  |  |     name = 'theodd-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4842 |  |  |     long_name = 'The Odd 1s Out (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4843 |  |  |     url = 'https://tapastic.com/series/Theodd1sout' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4844 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4845 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4846 |  |  | class TheWorldIsFlatTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4847 |  |  |     """Class to retrieve The World Is Flat Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4848 |  |  |     # Also on http://theworldisflatcomics.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4849 |  |  |     name = 'flatworld-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4850 |  |  |     long_name = 'The World Is Flat (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4851 |  |  |     url = 'https://tapastic.com/series/The-World-is-Flat' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4852 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4853 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4854 |  |  | class MisterAndMeTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4855 |  |  |     """Class to retrieve Mister & Me Comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4856 |  |  |     # Also on http://www.mister-and-me.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4857 |  |  |     # Also on http://www.gocomics.com/mister-and-me | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4858 |  |  |     name = 'mister-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4859 |  |  |     long_name = 'Mister & Me (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4860 |  |  |     url = 'https://tapastic.com/series/Mister-and-Me' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4861 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4862 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4863 |  |  | class TalesOfAbsurdityTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4864 |  |  |     """Class to retrieve Tales Of Absurdity comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4865 |  |  |     # Also on http://talesofabsurdity.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4866 |  |  |     # Also on http://talesofabsurdity.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4867 |  |  |     name = 'absurdity-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4868 |  |  |     long_name = 'Tales of Absurdity (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4869 |  |  |     url = 'http://tapastic.com/series/Tales-Of-Absurdity' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4870 |  |  |     _categories = ('ABSURDITY', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4871 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4872 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4873 |  |  | class BFGFSTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4874 |  |  |     """Class to retrieve BFGFS comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4875 |  |  |     # Also on http://bfgfs.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4876 |  |  |     # Also on http://bfgfs.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4877 |  |  |     name = 'bfgfs-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4878 |  |  |     long_name = 'BFGFS (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4879 |  |  |     url = 'https://tapastic.com/series/BFGFS' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4880 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4881 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4882 |  |  | class DoodleForFoodTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4883 |  |  |     """Class to retrieve Doodle For Food comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4884 |  |  |     # Also on http://doodleforfood.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4885 |  |  |     name = 'doodle-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4886 |  |  |     long_name = 'Doodle For Food (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4887 |  |  |     url = 'https://tapastic.com/series/Doodle-for-Food' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4888 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4889 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4890 |  |  | class MrLovensteinTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4891 |  |  |     """Class to retrieve Mr Lovenstein comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4892 |  |  |     # Also on  https://tapastic.com/series/MrLovenstein | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4893 |  |  |     name = 'mrlovenstein-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4894 |  |  |     long_name = 'Mr. Lovenstein (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4895 |  |  |     url = 'https://tapastic.com/series/MrLovenstein' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4896 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4897 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4898 |  |  | class CassandraCalinTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4899 |  |  |     """Class to retrieve C. Cassandra comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4900 |  |  |     # Also on http://cassandracalin.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4901 |  |  |     # Also on http://c-cassandra.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4902 |  |  |     name = 'cassandra-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4903 |  |  |     long_name = 'Cassandra Calin (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4904 |  |  |     url = 'https://tapastic.com/series/C-Cassandra-comics' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4905 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4906 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4907 |  |  | class WafflesAndPancakes(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4908 |  |  |     """Class to retrieve Waffles And Pancakes comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4909 |  |  |     # Also on http://wandpcomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4910 |  |  |     name = 'waffles' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4911 |  |  |     long_name = 'Waffles And Pancakes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4912 |  |  |     url = 'https://tapastic.com/series/Waffles-and-Pancakes' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4913 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4914 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4915 |  |  | class YesterdaysPopcornTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4916 |  |  |     """Class to retrieve Yesterday's Popcorn comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4917 |  |  |     # Also on http://www.yesterdayspopcorn.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4918 |  |  |     # Also on http://yesterdayspopcorn.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4919 |  |  |     name = 'popcorn-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4920 |  |  |     long_name = 'Yesterday\'s Popcorn (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4921 |  |  |     url = 'https://tapastic.com/series/Yesterdays-Popcorn' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4922 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4923 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4924 |  |  | class OurSuperAdventureTapastic(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4925 |  |  |     """Class to retrieve Our Super Adventure comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4926 |  |  |     # Also on http://www.oursuperadventure.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4927 |  |  |     # http://sarahssketchbook.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4928 |  |  |     # http://sarahgraley.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4929 |  |  |     name = 'superadventure-tapastic' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4930 |  |  |     long_name = 'Our Super Adventure (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4931 |  |  |     url = 'https://tapastic.com/series/Our-Super-Adventure' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4932 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4933 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4934 |  |  | class NamelessPCs(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4935 |  |  |     """Class to retrieve Nameless PCs comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4936 |  |  |     # Also on http://namelesspcs.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4937 |  |  |     name = 'namelesspcs-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4938 |  |  |     long_name = 'NamelessPCs (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4939 |  |  |     url = 'https://tapastic.com/series/NamelessPC' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4940 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4941 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4942 |  |  | class UbertoolTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4943 |  |  |     """Class to retrieve Ubertool comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4944 |  |  |     # Also on http://ubertoolcomic.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4945 |  |  |     # Also on http://ubertool.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4946 |  |  |     name = 'ubertool-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4947 |  |  |     long_name = 'Ubertool (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4948 |  |  |     url = 'https://tapastic.com/series/ubertool' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4949 |  |  |     _categories = ('UBERTOOL', ) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4950 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4951 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4952 |  |  | class BarteNerdsTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4953 |  |  |     """Class to retrieve BarteNerds comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4954 |  |  |     # Also on http://www.bartenerds.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4955 |  |  |     name = 'bartenerds-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4956 |  |  |     long_name = 'BarteNerds (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4957 |  |  |     url = 'https://tapastic.com/series/BarteNERDS' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4958 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4959 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4960 |  |  | class SmallBlueYonderTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4961 |  |  |     """Class to retrieve Small Blue Yonder comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4962 |  |  |     # Also on http://www.smallblueyonder.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4963 |  |  |     name = 'smallblue-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4964 |  |  |     long_name = 'Small Blue Yonder (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4965 |  |  |     url = 'https://tapastic.com/series/Small-Blue-Yonder' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4966 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4967 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4968 |  |  | class TizzyStitchBirdTapa(GenericTapasticComic): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4969 |  |  |     """Class to retrieve Tizzy Stitch Bird comics.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4970 |  |  |     # Also on http://tizzystitchbird.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4971 |  |  |     # Also on http://tizzystitchbird.tumblr.com | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4972 |  |  |     # Also on http://www.webtoons.com/en/challenge/tizzy-stitchbird/list?title_no=50082 | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4973 |  |  |     name = 'tizzy-tapa' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4974 |  |  |     long_name = 'Tizzy Stitch Bird (from Tapastic)' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4975 |  |  |     url = 'https://tapastic.com/series/TizzyStitchbird' | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4976 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4977 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4978 |  |  | def get_subclasses(klass): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4979 |  |  |     """Gets the list of direct/indirect subclasses of a class""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4980 |  |  |     subclasses = klass.__subclasses__() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4981 |  |  |     for derived in list(subclasses): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4982 |  |  |         subclasses.extend(get_subclasses(derived)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4983 |  |  |     return subclasses | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4984 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4985 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4986 |  |  | def remove_st_nd_rd_th_from_date(string): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4987 |  |  |     """Function to transform 1st/2nd/3rd/4th in a parsable date format.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4988 |  |  |     # Hackish way to convert string with numeral "1st"/"2nd"/etc to date | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4989 |  |  |     return (string.replace('st', '') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4990 |  |  |             .replace('nd', '') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4991 |  |  |             .replace('rd', '') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4992 |  |  |             .replace('th', '') | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4993 |  |  |             .replace('Augu', 'August')) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4994 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4995 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4996 |  |  | def string_to_date(string, date_format, local=DEFAULT_LOCAL): | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4997 |  |  |     """Function to convert string to date object. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4998 |  |  |     Wrapper around datetime.datetime.strptime.""" | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4999 |  |  |     # format described in https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5000 |  |  |     prev_locale = locale.setlocale(locale.LC_ALL) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5001 |  |  |     if local != prev_locale: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5002 |  |  |         locale.setlocale(locale.LC_ALL, local) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5003 |  |  |     ret = datetime.datetime.strptime(string, date_format).date() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5004 |  |  |     if local != prev_locale: | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5005 |  |  |         locale.setlocale(locale.LC_ALL, prev_locale) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5006 |  |  |     return ret | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5007 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5008 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5009 |  |  | COMICS = set(get_subclasses(GenericComic)) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5010 |  |  | VALID_COMICS = [c for c in COMICS if c.name is not None] | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5011 |  |  | COMIC_NAMES = {c.name: c for c in VALID_COMICS} | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5012 |  |  | assert len(VALID_COMICS) == len(COMIC_NAMES) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5013 |  |  | CLASS_NAMES = {c.__name__ for c in VALID_COMICS} | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 5014 |  |  | assert len(VALID_COMICS) == len(CLASS_NAMES) | 
            
                                                        
            
                                    
            
            
                | 5015 |  |  |  |