action="store", dest="loglevel",
help="Verbosity level")
+ parser.add_argument("-t", "--timestamp", default="timestamp",
+ help="File to read a reference timestamp from")
+
args = parser.parse_args()
return args
logging.basicConfig(format='%(asctime)s %(message)s',level=numeric_level)
logging.debug("Begin")
snapshots = crawl(args.url)
- timestamp_file = 'timestamp'
+ timestamp_file = args.timestamp
if "snapshots" in args.url:
- timestamp_file = 'timestamp_snapshot'
discovered = snapshots
else:
discovered = set()