fragtastic / cis-benchmark-converter

Converts text dumps from CIS Benchmark PDFs to CSV & Excel formats.
55 stars 23 forks source link

Not writing all lines #2

Closed overyde closed 4 years ago

overyde commented 4 years ago

Good day, This would be a great project. I dumped all text from the CIS Benchmark from PDF (basically did a CtrlA and CtrlV into a plain text file) and then ran it through your script.

It picks up 2462 total lines but only writes 4.

python3 cisConv.py ~/Desktop/CIS_Google_Android_Benchmark_v1.3.0.txt
Parsing /home/HomeLinu/Desktop/CIS_Google_Android_Benchmark_v1.3.0.txt
Writing to /home/HomeLinu/Desktop/CIS_Google_Android_Benchmark_v1.3.0.txt.csv
Total lines: 2462
Written Rows: 4
fragtastic commented 4 years ago

Not sure what the issue was. It's fixed now.

INFO:root:Writing to "benchmarks/CIS Google Android Benchmark v1.3.0.xlsx"
INFO:root:Parsing benchmarks/CIS Google Android Benchmark v1.3.0.txt
INFO:root:Total lines: 1579
INFO:root:Written Rows: 43