proxy = server.create_proxy()
service_args = ['--proxy-server=%s' % proxy.proxy]
driver = webdriver.PhantomJS(service_args=service_args)
proxy.new_har()
driver.get('url_to_open')
print(proxy.har)
all_requests = [entry['request']['url'] for entry in proxy.har['log'][
    'entries']]
Захват сети с помощью Selenium/PhantomJS