<commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = 'Bug'
    language = 'en'
    url = 'http://www.bugmartini.com/'
    start_date = '2009-10-19'
    rights = '<NAME>'


class Crawler(CrawlerBase):
    history_capable_days = 15
    schedule = 'Mo,Tu,We,Th,Fr'
    time_zone = 'US/Mountain'

    def crawl(self, pub_date):
        feed = self.parse_feed('http://www.bugmartini.com/feed/')
        for entry in feed.for_date(pub_date):
            title = entry.title
            url = entry.summary.src('img[src*="/wp-content/uploads/"]')
            url = url.replace('?resize=520%2C280', '')
            return CrawlerImage(url, title)<commit_msg>Update 'bugcomics' name<commit_after>from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = '<NAME>'
    language = 'en'
    url = 'http://www.bugmartini.com/'
    start_date = '2009-10-19'
    rights = '<NAME>'


class Crawler(CrawlerBase):
    history_capable_days = 15
    schedule = 'Mo,Tu,We,Th,Fr'
    time_zone = 'US/Mountain'

    def crawl(self, pub_date):
        feed = self.parse_feed('http://www.bugmartini.com/feed/')
        for entry in feed.for_date(pub_date):
            title = entry.title
            url = entry.summary.src('img[src*="/wp-content/uploads/"]')
            url = url.replace('?resize=520%2C280', '')
            return CrawlerImage(url, title)
{'fraction_non_alphanumeric': 0.1390856406954282, 'fraction_numerical': 0.02189311010946555, 'mean_word_length': 3.0155038759689923, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5597552', 'n_tokens_mistral': 562, 'n_tokens_neox': 515, 'n_words': 95}