def __init__(self, date): self.template = 'digest.html' self.date = date self.title = '' self.tc = truecaser.Truecaser(truecaser.loaddict(open('vendor/truecase.txt', 'rb'))) self.stopwords = frozenset(map(str.strip, open('vendor/stopwords.txt', 'r', encoding='utf-8'))) self.ircbots = re.compile(r'(titlbot|varia|Akarin).*') self.fetchmsg(date) self.msgindex()
def __init__(self, date): self.template = 'digest.html' self.date = date self.title = '' self.tc = truecaser.Truecaser( truecaser.loaddict(open('vendor/truecase.txt', 'rb'))) self.stopwords = frozenset( map(str.strip, open('vendor/stopwords.txt', 'r', encoding='utf-8'))) self.ircbots = re.compile(r'(titlbot|varia|Akarin).*') self.fetchmsg(date) self.msgindex()
def __init__(self): self.template = 'stat.html' self.tc = truecaser.Truecaser( truecaser.loaddict(open('vendor/truecase.txt', 'rb')))
def __init__(self): self.template = 'stat.html' self.tc = truecaser.Truecaser(truecaser.loaddict(open('vendor/truecase.txt', 'rb')))