Skip to content

Instantly share code, notes, and snippets.

View derycck's full-sized avatar

Aldéryck Félix de Albuquerque derycck

View GitHub Profile
@Lewiscowles1986
Lewiscowles1986 / extract_har.py
Last active June 25, 2024 15:05 — forked from kafran/extract_har.py
Python 3 script to extract images from HTTP Archive (HAR) files
import json
import base64
import os
import pathlib
from urllib.parse import urlparse
# list of supported image mime-types
# Special thanks to https://gist.github.com/FurloSK/0477e01024f701db42341fc3223a5d8c
# Special mention, and thanks to MDN
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types