This is a simple script to convert HAR files to CSV files to quickly import network requests in Google Sheets.
- Python 3.11 or higher (may work with older versions but not tested)
- Google Chrome
- Clone the repository or download the files.
- Create a virtual environment with
python -m venv venv
and activate it withsource venv/bin/activate
on WSL2. - Install the requirements with
pip install -r requirements.txt
.
- Open a Chrome private window on the desired start page and open the developer tools (F12) on the network tab. Clear previous logs and enable "Preserve log".
- Hard reload the page (Ctrl + F5) and wait for the page to load and all requests to finish.
- Accept or deny consents if necessary and browse a few pages.
- When done, click on the "Export HAR" button at the top of the network tab and save the file in the input_files_har folder.
- Repeat steps 1 to 4 for each domain to analyze.
- Copy the
config.yml.example
file and renamme it toconfig.yml
, then adapt the configurations to your needs. - Run the script with the command
python main.py
from the terminal. - A unique CSV file will be saved in the output_files_csv folder.
- Import the CSV files Google Sheets and analyze the data.