def getRelsFromURIMSinWARC(warc):
urims = getURIMsFromTimeMapInWARC(warc)
startReplay(warc)
# Get Link header values for each memento
linkHeaders = []
for urim in urims:
linkHeaders.append(urllib2.urlopen(urim).info().getheader('Link'))
stopReplay()
relsForURIMs = []
for linkHeader in linkHeaders:
relForURIM = ipwbTest.extractRelationEntriesFromLinkTimeMap(linkHeader)
relsForURIMs.append(relForURIM)
stopReplay()
return relsForURIMs
评论列表
文章目录