I want to get the output that is shown on the network panel of the developer tools.
[Network panel --> Name, Method, Status, Type, Initiator, Size, Time, Timeline]
I need this information.
I want to get the output that is shown on the network panel of the developer tools.
[Network panel --> Name, Method, Status, Type, Initiator, Size, Time, Timeline]
I need this information.
With Python, one way to do it is:
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import chromedriver_binary # If you're using conda like me.
yoururl = "www.yoururl.com"
caps = DesiredCapabilities.CHROME
caps['goog:loggingPrefs'] = {'performance': 'ALL'}
driver = webdriver.Chrome(desired_capabilities=caps)
driver.get(yoururl)
time.sleep(10) # wait for all the data to arrive.
perf = driver.get_log('performance')
perf is a list of dictionaries and you'll be able to find the item you're looking for in this list. i.e, dictionaries are the things that you see in Chrome's dev tool network tab.