mikestead / lighthouse-batch

Run Lighthouse analysis over multiple sites in a single command
MIT License
156 stars 42 forks source link

Error when output CSV #55

Closed ast-hao closed 3 years ago

ast-hao commented 3 years ago

Hi mikestead,

When I tried to export the .csv format by using following command, an error occurs lighthouse-batch -p --output=csv -s https://www.google.com image

This will impact a batch processing when I read list from site.txt. E.g., in site.txt, following URLs are listed: https://www.google.com https://www.bing.com Then, when try to use following command, the error will occur and interrupt the next URL's process. lighthouse-batch -p --output=csv -f D:\site.txt

But the JSON file is actually existing. image

The --output=csv is supported in "lighthouse", by using this, the output csv files is easy to be imported and proceeding in a pivot table in excel, especially multi URLs existing. So, if this can be supported in "lighthouse-batch", will be a GREAT improvement.

image

Thanks again for providing the resource and package.

mikestead commented 3 years ago

Fixed in version 7.0.0

Use the new --csv option e.g. npx lighthouse-batch --csv -s https://www.google.com

ast-hao commented 3 years ago

Fixed in version 7.0.0

Use the new --csv option e.g. npx lighthouse-batch --csv -s https://www.google.com

Thank you Mikestead!