title: Selenium Python - Get a list of all loaded URLs (images, scripts, stylesheets etc)
body: <p>When Google Chrome loads a web page through Selenium, it may load additional files required by the page, e.g. from <code>&lt;img src="example.com/a.png"&gt;</code> or <code>&lt;script src="example.com/a.js"&gt;</code> tags. In addition, CSS files.</p>
  
  <p>How can I get a list of all URLs that were downloaded when the browser loaded a page? (Programatically, using Selenium in Python with chromedriver)
  That is to say, the list of files shown in the "Network" tab of the developer tools in Chrome (that shows a list of downloaded files).</p>
  
  <p>Example Code using Selenium, chromedriver:</p>
  
  <pre><code>from selenium import webdriver
  options = webdriver.ChromeOptions()
  options.binary_location = "/usr/bin/x-www-browser"
  driver = webdriver.Chrome("./chromedriver", chrome_options=options)
  # Load some page
  driver.get("https://example.com")
  # Now, how do I see a list of downloaded URLs that took place when loading the page above?
  </code></pre>