Exemple #1
0
def main():
    options = CadernosOptions()
    hbfauto = HbFileAuto(options.hbfilenames())
    pe = PostExtractor(*hbfauto.hbfs)
    posts = pe.getPosts(options.startdate(), options.enddate())
    for post in posts:
        print post
Exemple #2
0
def main():
    options = CadernosOptions()
    hbfauto = HbFileAuto(options.hbfilenames())
    pe = PostExtractor(*hbfauto.hbfs)
    posts = pe.getPosts(options.startdate(), options.enddate())
    for post in posts:
        print post
Exemple #3
0
def getPostsFromHbFile(hbfilename, startDate, endDate):
    f = file(hbfilename)
    pe = PostExtractor(HbFile(f))
    f.close()
    return pe.getPosts(startDate, endDate)
Exemple #4
0
def getPostsFromHbFile(hbfilename, startDate, endDate):
    f = file(hbfilename)
    pe = PostExtractor(HbFile(f))
    f.close()
    return pe.getPosts(startDate, endDate)