From e2bf681187b53fad62bbb64605c3a9cf7878beb5 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Fri, 10 Jul 2015 08:44:47 +0200 Subject: [PATCH] webpagetest readme --- webpagetest/README.md | 27 ++++++++++++++++++++++++++- webpagetest/wpt_csv_filter_batch.py | 2 +- webpagetest/wpt_csv_stats.py | 2 ++ webpagetest/wpt_csv_stats_batch.py | 2 ++ 4 files changed, 31 insertions(+), 2 deletions(-) mode change 100644 => 100755 webpagetest/wpt_csv_stats.py mode change 100644 => 100755 webpagetest/wpt_csv_stats_batch.py diff --git a/webpagetest/README.md b/webpagetest/README.md index 149f7be..d53743a 100644 --- a/webpagetest/README.md +++ b/webpagetest/README.md @@ -5,4 +5,29 @@ -f FILE, --file=FILE wpt csv input file -b BUGS, --bugs=BUGS ghostery (formated) bugs input file -k, --keep keeps the non bugs html element - -s, --stats prints basic stats \ No newline at end of file + -s, --stats prints basic stats + + Usage: wpt_csv_filter_batch.py [options] + + Options: + -h, --help show this help message and exit + -i INPUTDIR, --inputdir=INPUTDIR + input directory (where all the wpt csv files reside) + -b BUGS, --bugs=BUGS ghostery (formated) bugs input file + -k, --keep keeps the non bugs html element + -o OUTPUTDIR, --outputdir=OUTPUTDIR + output directory (where all the filtered csv files + will be placed in) + + Usage: wpt_csv_stats.py [options] + + Options: + -h, --help show this help message and exit + -f FILE, --file=FILE wpt csv input file + + Usage: wpt_csv_stats_batch.py [options] + + Options: + -h, --help show this help message and exit + -i INPUTDIR, --inputdir=INPUTDIR + input directory (where all the wpt csv files reside) \ No newline at end of file diff --git a/webpagetest/wpt_csv_filter_batch.py b/webpagetest/wpt_csv_filter_batch.py index 489f091..b59820e 100755 --- a/webpagetest/wpt_csv_filter_batch.py +++ b/webpagetest/wpt_csv_filter_batch.py @@ -46,7 +46,7 @@ if __name__ == '__main__': p.add_option('-i', '--inputdir', action="store", help="input directory (where all the wpt csv files reside)") p.add_option('-b', '--bugs', action="store", help="ghostery (formated) bugs input file") p.add_option('-k', '--keep', action="store_true", help="keeps the non bugs html element") - p.add_option('-o', '--outputdir', action="store", help="output directory (where all the filtered csv files will be placed)", default="") + p.add_option('-o', '--outputdir', action="store", help="output directory (where all the filtered csv files will be placed in)", default="") options, args = p.parse_args() diff --git a/webpagetest/wpt_csv_stats.py b/webpagetest/wpt_csv_stats.py old mode 100644 new mode 100755 index fb3cbe0..70229bc --- a/webpagetest/wpt_csv_stats.py +++ b/webpagetest/wpt_csv_stats.py @@ -1,3 +1,5 @@ +#!/usr/bin/python2.7 + import sys, csv, json, os, re from optparse import OptionParser diff --git a/webpagetest/wpt_csv_stats_batch.py b/webpagetest/wpt_csv_stats_batch.py old mode 100644 new mode 100755 index c140547..1f30017 --- a/webpagetest/wpt_csv_stats_batch.py +++ b/webpagetest/wpt_csv_stats_batch.py @@ -1,3 +1,5 @@ +#!/usr/bin/python2.7 + import sys, csv, json, os, re from optparse import OptionParser import wpt_csv_stats