webpagetest readme

This commit is contained in:
gauthiier 2015-07-10 08:44:47 +02:00
parent 33b13b61ef
commit e2bf681187
4 changed files with 31 additions and 2 deletions

View File

@ -5,4 +5,29 @@
-f FILE, --file=FILE wpt csv input file -f FILE, --file=FILE wpt csv input file
-b BUGS, --bugs=BUGS ghostery (formated) bugs input file -b BUGS, --bugs=BUGS ghostery (formated) bugs input file
-k, --keep keeps the non bugs html element -k, --keep keeps the non bugs html element
-s, --stats prints basic stats -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)

View File

@ -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('-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('-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('-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() options, args = p.parse_args()

2
webpagetest/wpt_csv_stats.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/python2.7
import sys, csv, json, os, re import sys, csv, json, os, re
from optparse import OptionParser from optparse import OptionParser

2
webpagetest/wpt_csv_stats_batch.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/python2.7
import sys, csv, json, os, re import sys, csv, json, os, re
from optparse import OptionParser from optparse import OptionParser
import wpt_csv_stats import wpt_csv_stats