Open developer tools in your own browser and look at the network tab. Click on the requests and click Block Request then refresh (Right click refresh button and reload without cache)
Keep blocking images and scripts until the website stops working
Take that list of blocked stuff and put it in your script using Request Mask Deny
I think you could use another thread with the browser to accomplish this. And saving the necessary data to a resource / global variable, then using this data in the new thread, whether with the browser or whatever needs to be done.