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

Side by Side Diff: write_html.py

Issue 1620043002: Add scripts for distillability modelling (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: set upstream patchset, identical to patch set 2 Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « write_features_csv.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import argparse
7 import json
8 import os
9 import shutil
10 import sys
11 import time
12 import urllib
13
14 def main(argv):
15 parser = argparse.ArgumentParser()
16 parser.add_argument('--out', required=True)
17 options = parser.parse_args(argv)
18
19 outdir = options.out
20
21 with open('%s/index' % outdir) as idx:
22 index = json.load(idx)
23
24
25 for e in index:
26 print e
27
28
29
30 if __name__ == '__main__':
31 sys.exit(main(sys.argv[1:]))
32
OLDNEW
« no previous file with comments | « write_features_csv.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698