@@ -0,0 +1,899 @@
+import argparse%0Aimport json%0Aimport os%0A%0Aimport mcbench.client%0A%0A%0Adef parse_args():%0A    parser = argparse.ArgumentParser(%0A        description='load benchmarks into McBench redis instance')%0A    parser.add_argument(%0A        '--redis_url',%0A        default='redis://localhost:6379',%0A        help='URL of redis instance.'%0A    )%0A    parser.add_argument(%0A        '--manifest', required=True,%0A        help='Path to manifest.json.')%0A    return parser.parse_args()%0A%0A%0Adef main():%0A    args = parse_args()%0A    mcbench_client = mcbench.client.from_redis_url(args.redis_url)%0A    with open(os.path.expanduser(args.manifest)) as f:%0A        manifest = json.load(f)%0A        for project in manifest%5B'projects'%5D:%0A            project%5B'tags'%5D = ','.join(project%5B'tags'%5D)%0A            benchmark = mcbench.client.Benchmark(**project)%0A            mcbench_client.insert_benchmark(benchmark)%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add script to load data from scraper manifest.