예제 #1
0
파일: hb2post.py 프로젝트: euluis/hb2posts
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
예제 #2
0
파일: hb2post.py 프로젝트: euluis/hb2posts
def getPostsFromHbFile(hbfilename, startDate, endDate):
    f = file(hbfilename)
    pe = PostExtractor(HbFile(f))
    f.close()
    return pe.getPosts(startDate, endDate)