Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
 def __init__(self):
     self.template = 'stat.html'
     self.tc = truecaser.Truecaser(
         truecaser.loaddict(open('vendor/truecase.txt', 'rb')))
Esempio n. 4
0
 def __init__(self):
     self.template = 'stat.html'
     self.tc = truecaser.Truecaser(truecaser.loaddict(open('vendor/truecase.txt', 'rb')))