Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evanhalley/lighthouse-pizza-teer

This is sample code on how to use Puppeteer alongside Lighthouse to run analysis on webpages behind an authentication wall.
https://github.com/evanhalley/lighthouse-pizza-teer

lighthouse nodejs pizza puppeteer

Last synced: about 10 hours ago
JSON representation

This is sample code on how to use Puppeteer alongside Lighthouse to run analysis on webpages behind an authentication wall.

Awesome Lists containing this project

README

        

# lighthouse-pizza-teer

This is sample code on how to use Puppeteer alongside Lighthouse to run analysis on webpages behind an authentication wall. See the walkthrough at [https://evanhalley.dev/post/lighthouse-pizza-teer](https://evanhalley.dev/post/lighthouse-pizza-teer).

## Setup

1. Create an account at [https://salviospizza.hungerrush.com/](https://salviospizza.hungerrush.com/)
2. Run `npm i` to download the dependencies.
3. Create a file in the root of this repo called `.env` with the following format.

```
[email protected]
PASSWORD=your-password
```

4. Run the script by typing `node .`.
5. Two reports will be generated `report.html` and `report.json`.

If you are local to the Raleigh area, go ahead and order a Pizza and enjoy! 🍕