Error when loading cookies into a Python request session
问题 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'" 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) Everywhere I see this should work, however my cookies are a list of dictionaries,