<commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase

class Meta(MetaBase):
    name = 'The PC Weenies'
    language = 'en'
    url = 'http://www.pcweenies.com/'
    start_date = '1998-10-21'
    rights = '<NAME>'

class Crawler(CrawlerBase):
    history_capable_days = 10
    schedule = 'Mo,We,Fr'
    time_zone = -8

    def crawl(self, pub_date):
        feed = self.parse_feed('http://www.pcweenies.com/feed/')
        for entry in feed.for_date(pub_date):
            if 'Comic' in entry.tags:
                title = entry.title
                url = entry.content0.src(u'img')
                return CrawlerResult(url, title)<commit_msg>Update CSS selector which matched two img elements<commit_after>from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase

class Meta(MetaBase):
    name = 'The PC Weenies'
    language = 'en'
    url = 'http://www.pcweenies.com/'
    start_date = '1998-10-21'
    rights = 'Krishna M. Sadasivam'

class Crawler(CrawlerBase):
    history_capable_days = 10
    schedule = 'Mo,We,Fr'
    time_zone = -8

    def crawl(self, pub_date):
        feed = self.parse_feed('http://www.pcweenies.com/feed/')
        for entry in feed.for_date(pub_date):
            if 'Comic' in entry.tags:
                title = entry.title
                url = entry.content0.src(u'img[src*="/comics/"]')
                return CrawlerResult(url, title)
{'fraction_non_alphanumeric': 0.11776581426648722, 'fraction_numerical': 0.016150740242261104, 'mean_word_length': 2.6004842615012107, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '89551', 'n_tokens_mistral': 515, 'n_tokens_neox': 482, 'n_words': 110}