Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: write_html.py

Issue 1000523002: . Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « get_screenshots.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: write_html.py
diff --git a/write_html.py b/write_html.py
new file mode 100755
index 0000000000000000000000000000000000000000..4a515fb7b7ae6b4967863df44acb2d0c836daf05
--- /dev/null
+++ b/write_html.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import argparse
+import json
+import os
+import shutil
+import sys
+import time
+import urllib
+
+def main(argv):
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--out', required=True)
+ options = parser.parse_args(argv)
+
+ outdir = options.out
+
+ with open('%s/index' % outdir) as idx:
+ index = json.load(idx)
+
+
+ for e in index:
+ print e
+
+
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv[1:]))
+
« no previous file with comments | « get_screenshots.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698