This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import bagit, argparse, os | |
parser = argparse.ArgumentParser(description="Helper for converting a bunch of dirs into bags.") | |
parser.add_argument('-i', '--input', type=str, required=True, help='The full path to the target dir.') | |
args = parser.parse_args() | |
for directory in os.listdir(args.input): | |
if os.path.isdir(os.path.join(args.input, directory)): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Getting the Most out of Your Zip Disks | |
Your Zip disks give you unlimited, high capacity, high | |
performance storage. With your Zip disks you can: | |
- Expand your computer storage quickly and easily, 250MB at | |
a time. | |
- Move your work easily to different locations and computers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from collections import defaultdict, Counter | |
from datetime import datetime | |
from urlparse import urlsplit | |
indiv = Counter() | |
domains = defaultdict(lambda: defaultdict(int)) | |
with open("history.csv", "rb") as f: | |
for timestr, url in csv.reader(f): |
NewerOlder