Initial commit

This commit is contained in:
Antoine Martin 2021-08-07 23:09:09 +02:00
commit 22af9028bf

20
extract.py Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env python
import json
import sys
from haralyzer import HarParser, HarPage
with open(sys.argv[1]) as f:
har_parser = HarParser(json.loads(f.read()))
data = har_parser.har_data
urls = set()
for entry in data['entries']:
url = entry['request']['url']
urls.add(url)
for url in urls:
print(url)