title: Error when loading cookies into a Python request session
body: <p>I am trying to load cookies into my request session in Python from selenium exported cookies, however when I do it returns the following error:
  "'list' object has no attribute 'extract_cookies'"</p>
  
  <pre><code>def load_cookies(filename):
      with open(filename, 'rb') as f:
          return pickle.load(f)
  
  initial_state= requests.Session()
  initial_state.cookies=load_cookies(time_cookie_file)
  search_requests = initial_state.get(search_url)
  </code></pre>
  
  <p>Everywhere I see this should work, however my cookies are a list of dictionaries, which is what I understand all cookies are, and why I assume this works with Selenium. However for some reason it does not work with requests, any and all help in this regard would be really great, it feels like I am missing something obvious!</p>
  
  <p>Cookies have been dumped from Selenium using:</p>
  
  <pre><code>with open("Filepath.pkl", 'wb') as f:
      pickle.dump(driver.get_cookies(), f)
  </code></pre>
  
  <p>An example of the cookies would be (slightly obfuscated):</p>
  
  <pre><code>[{'domain': '.website.com',
    'expiry': 1640787949,
    'httpOnly': False,
    'name': '_ga',
    'path': '/',
    'secure': False,
    'value': 'GA1.2.1111111111.1111111111'},
   {'domain': 'website.com',
    'expiry': 1585488346,
    'httpOnly': False,
    'name': '__pnahc',
    'path': '/',
    'secure': False,
    'value': '0'}]
  </code></pre>
  
  <p>I have now managed to load in the cookies as per the answer below, however it does not seem like the cookies are loaded in properly as they do not remember anything, however if I load the cookies in when browsing through Selenium they work fine.</p>