def main(argv): args = gc.parse_args(sys.argv) csw_endpoint = args.csw_endpoint context = { 'root_url' : args.root_url, 'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d') } data = gc.get_datasets_from_csw(csw_endpoint, False) generate_sitemap(data, args.destination_dir, context)
def main(argv): args = gc.parse_args(sys.argv) csw_endpoint = args.csw_endpoint context = { u'root_url' : u'' + args.root_url, u'last_modified' : u'' + datetime.datetime.now().strftime('%Y-%m-%d') } data = gc.get_datasets_from_csw(csw_endpoint, True) generate_skeleton(data, args.destination_dir, context)