예제 #1
0
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pprint.pprint(((archive.format, archive.rec_type),
                   archive.rec_headers, archive.status_headers))
예제 #2
0
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pywb.utils.statusandheaders.WRAP_WIDTH = 160

    pprint.pprint(((archive.format, archive.rec_type),
                   archive.rec_headers, archive.status_headers), indent=1, width=160)
예제 #3
0
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pywb.utils.statusandheaders.WRAP_WIDTH = 160

    pprint.pprint(((archive.format, archive.rec_type), archive.rec_headers,
                   archive.status_headers),
                  indent=1,
                  width=160)