See https://moopinger.github.io/blog/recon/urlscan/2023/10/18/urlscan-parsing-for-gold.html
git clone https://github.com/Moopinger/URLScanScripts.git
cd URLScanScripts
pip3 install -r requirements.txt
If you do not have an API key for urlscan.io head over to https://urlscan.io/user/signup and get one.
Insert the API key into fetch.py before running.
python3 fetch.py -d test.com
python3 scan.py -f test_com_all_results.json -m scan